Track local label scope, string equated as .. (#1504)

This commit is contained in:
Sylvie
2024-09-18 09:52:30 -04:00
committed by GitHub
parent 197f6cb0ba
commit 9ef2e43bf7
13 changed files with 167 additions and 67 deletions

View File

@@ -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);