mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Track local label scope, string equated as .. (#1504)
This commit is contained in:
@@ -1174,7 +1174,7 @@ static Token readIdentifier(char firstChar, bool raw) {
|
||||
return Token(search->second);
|
||||
}
|
||||
|
||||
// Label scope `.` is the only nonlocal identifier that starts with a dot
|
||||
// Label scopes `.` and `..` are the only nonlocal identifiers that start with a dot
|
||||
if (identifier.find_first_not_of('.') == identifier.npos)
|
||||
tokenType = T_(ID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user