diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-11-29 04:03:14 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-11-29 04:03:14 -0500 |
commit | faa01aa189cfbcf06cdd437bbf970e0c2502ba8d (patch) | |
tree | 2555c22a837c288cd44d1d095020d068cb16d34f /compiler.c | |
parent | 05de972109f323d972760af09f565b04cf26f69e (diff) |
Fix is_reserved
Diffstat (limited to 'compiler.c')
-rw-r--r-- | compiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |