aboutsummaryrefslogtreecommitdiff
path: root/asm/lexer.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-08 18:14:41 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-08 18:14:41 +0000
commit642a8ae9449c40f4e78b562a501d49d34aa8aec6 (patch)
tree4a7a72bd5b5dd1f8ae433eee05fe469d94f9d83b /asm/lexer.c
parent8fa40d8515daeaafe74e686265e7f3104ae76b65 (diff)
downloadovm-642a8ae9449c40f4e78b562a501d49d34aa8aec6.tar.gz
ovm-642a8ae9449c40f4e78b562a501d49d34aa8aec6.tar.bz2
ovm-642a8ae9449c40f4e78b562a501d49d34aa8aec6.zip
Lexer symbols now recognise macro constants and references
Diffstat (limited to 'asm/lexer.c')
-rw-r--r--asm/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/lexer.c b/asm/lexer.c
index 8b0a061..49756f5 100644
--- a/asm/lexer.c
+++ b/asm/lexer.c
@@ -143,7 +143,7 @@ char uppercase(char c)
bool is_symbol(char c)
{
return isalpha(c) || isdigit(c) || c == '-' || c == '_' || c == '.' ||
- c == ':';
+ c == ':' || c == '(' || c == ')' || c == '%' || c == '$';
}
bool is_valid_hex_char(char c)