Consistently lex local labels after keywords, even when skipping/capturing

This commit is contained in:
Rangi42
2026-04-27 15:28:30 +02:00
parent 3f144b7713
commit a18b2f1049
4 changed files with 2 additions and 15 deletions
+1 -1
View File
@@ -2166,7 +2166,7 @@ static Token skipToLeadingKeyword() {
} else if (isLetter(c)) {
shiftChar();
std::string keyword(1, c);
for (c = peek(); continuesIdentifier(c) && c != '.'; c = nextChar()) {
for (c = peek(); continuesIdentifier(c); c = nextChar()) {
keyword += c;
}
if (auto search = keywords.find(keyword); search != keywords.end()) {