diff --git a/src/Parser/Parsing/Simple/Matcher/SimpleMatcherKeywordIgnoreCase.cpp b/src/Parser/Parsing/Simple/Matcher/SimpleMatcherKeywordIgnoreCase.cpp index 48648913..3c241d16 100644 --- a/src/Parser/Parsing/Simple/Matcher/SimpleMatcherKeywordIgnoreCase.cpp +++ b/src/Parser/Parsing/Simple/Matcher/SimpleMatcherKeywordIgnoreCase.cpp @@ -19,7 +19,7 @@ MatcherResult SimpleMatcherKeywordIgnoreCase::CanMatch(ILexer const auto& identifierValue = token.IdentifierValue(); const auto isEqual = std::equal(identifierValue.begin(), identifierValue.end(), m_value.begin(), m_value.end(), [](const char a, const char b) { - return a == tolower(b); + return tolower(a) == b; }); if (isEqual)