mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-09 03:19:35 +00:00
Consistently lex local labels after keywords, even when skipping/capturing
This commit is contained in:
+1
-1
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user