diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-03 22:24:35 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:31 +0200 |
commit | 3899cd3c8fb3eccb73a43208e90d88cfcc64c41c (patch) | |
tree | 3731ca07606dbab40616de45a417ba44865f5ce7 /src/core/common/Utils.cpp | |
parent | 04ca3af777a18ba9148110500d3d9ad3f6210895 (diff) |
Identifiers may not end 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 a87ff6d..67920c2 100644 --- a/src/core/common/Utils.cpp +++ b/src/core/common/Utils.cpp @@ -36,7 +36,7 @@ bool Utils::isIdentifier(const std::string &name) } first = false; } - return !first; + return !first && isIdentifierEndCharacter(name.back()); } bool Utils::isIdentifierOrEmpty(const std::string &name) @@ -150,4 +150,4 @@ bool Utils::isUserDefinedToken(const std::string &token) } return false; } -}
\ No newline at end of file +} |