Symbols may now include digits in lexer

This is mostly so labels get to have digits.  This won't affect number
tokens as that happens before symbols.
This commit is contained in:
2023-11-03 21:50:55 +00:00
parent e6f580ba56
commit e9eead1177

View File

@@ -136,7 +136,8 @@ char uppercase(char c)
bool is_symbol(char c)
{
return isalpha(c) || c == '-' || c == '_' || c == '.' || c == ':';
return isalpha(c) || isdigit(c) || c == '-' || c == '_' || c == '.' ||
c == ':';
}
bool is_valid_hex_char(char c)