Allow dollar signs in identifiers (#1493)

This commit is contained in:
Sylvie
2024-09-03 17:09:06 -04:00
committed by GitHub
parent a098213053
commit 1283b0b6a6
3 changed files with 15 additions and 2 deletions

View File

@@ -1144,7 +1144,7 @@ static bool startsIdentifier(int c) {
}
static bool continuesIdentifier(int c) {
return startsIdentifier(c) || (c <= '9' && c >= '0') || c == '#' || c == '@';
return startsIdentifier(c) || (c <= '9' && c >= '0') || c == '#' || c == '$' || c == '@';
}
static Token readIdentifier(char firstChar, bool raw) {