aboutsummaryrefslogtreecommitdiffstats
path: root/Token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Token.cpp')
-rw-r--r--Token.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Token.cpp b/Token.cpp
index 7dc56c32..915e9ad9 100644
--- a/Token.cpp
+++ b/Token.cpp
@@ -79,8 +79,8 @@ int8_t const Token::m_precedence[NUM_TOKENS] =
char const Token::m_tokenType[] =
{
TOKEN_LIST(KT, KK)
-};
+};
Token::Value Token::fromIdentifierOrKeyword(const std::string& _name)
{
// The following macros are used inside TOKEN_LIST and cause non-keyword tokens to be ignored
@@ -91,7 +91,7 @@ Token::Value Token::fromIdentifierOrKeyword(const std::string& _name)
#undef KEYWORD
#undef TOKEN
auto it = keywords.find(_name);
- return it == keywords.end() ? Token::IDENTIFIER : it->second;
+ return it == keywords.end() ? Token::Identifier : it->second;
}
#undef KT