From 6c5825de6d34a0fced2db382188f9ae5300e061d Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 1 Nov 2021 10:25:05 +0100 Subject: [PATCH] Fix SimpleMatcher for keyword ignore case does not properly ignore case --- .../Parsing/Simple/Matcher/SimpleMatcherKeywordIgnoreCase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)