Fix SimpleMatcher for keyword ignore case does not properly ignore case

This commit is contained in:
Jan 2021-11-01 10:25:05 +01:00
parent 5df6fce48a
commit 6c5825de6d

View File

@ -19,7 +19,7 @@ MatcherResult<SimpleParserValue> 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)