summaryrefslogtreecommitdiff
path: root/compiler.c
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-11-29 04:03:14 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-11-29 04:03:14 -0500
commitfaa01aa189cfbcf06cdd437bbf970e0c2502ba8d (patch)
tree2555c22a837c288cd44d1d095020d068cb16d34f /compiler.c
parent05de972109f323d972760af09f565b04cf26f69e (diff)
Fix is_reserved
Diffstat (limited to 'compiler.c')
-rw-r--r--compiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler.c b/compiler.c
index 2081209..7f90f47 100644
--- a/compiler.c
+++ b/compiler.c
@@ -499,7 +499,7 @@ char *KEYTYPES = "uint8,uint16,uint32,uint64,uint,int8,int16,int32,int64,int,flo
char *RESERVED = "~`!@#$%^&*()[]{}+-=\"\'\\|:;/?>.<,";
char *OPS = "~`!%&|^*/+-=.<>";
-char *MULTI_OPS = "==,&&,||,^^,!==,!&&,!||,!^^,!<,!>,<<,>>,!&,!|,!^,++,--,>==,<==";
+char *MULTI_OPS = "==,&&,||,^^,!==,!&&,!||,!^^,!<,!>,<<,>>,!&,!|,!^,++,--,>==,<==,+=,-=,*=,/=,%=,!=,&=,|=,^=,~=,`=";
char *DELIMS = "()[]{}";
char *MULTI_DELIMS = ";:#";
@@ -524,7 +524,7 @@ bool in_csv(char *csv, char *match) {
}
bool is_reserved(char c) {
- return strchr(MULTI_DELIMS, c) != NULL;
+ return strchr(RESERVED, c) != NULL;
}
bool is_delim(char *data) {