diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-08 21:13:40 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-08 21:13:40 +0100 |
commit | 89339e77879cb97d5ddecbc21d62e094f9c700fa (patch) | |
tree | df6ab38f6b5fca5242953604e18245f74d435218 /src/core/common/Utils.cpp | |
parent | d710bf02517225662e80eeeaf93149cfe50c872d (diff) |
Changed definition of identifier (do not allow them to start with an underscore)
Diffstat (limited to 'src/core/common/Utils.cpp')
-rw-r--r-- | src/core/common/Utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/common/Utils.cpp b/src/core/common/Utils.cpp index e5e2d39..563fe2a 100644 --- a/src/core/common/Utils.cpp +++ b/src/core/common/Utils.cpp @@ -35,10 +35,10 @@ bool Utils::isIdentifier(const std::string &name) { bool first = true; for (char c : name) { - if (first && !(isAlphabetic(c) || c == '_')) { + if (first && !isIdentifierStartCharacter(c)) { return false; } - if (!first && !(isAlphanumeric(c) || c == '_' || c == '-')) { + if (!first && !isIdentifierCharacter(c)) { return false; } first = false; |