diff options
Diffstat (limited to 'Token.cpp')
-rw-r--r-- | Token.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |