diff options
Diffstat (limited to 'lexer.c')
-rw-r--r-- | lexer.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -824,7 +824,9 @@ uint64_t lex(char *str, uint64_t address, uint16_t bline, uint8_t dbg) { case TOK_CHAR: case TOK_EXPR: s->val = get_val(tok, address, 3, dbg); - tok = skip_expr(tok, dbg); + if (tok->next) { + tok = skip_expr(tok, dbg); + } break; } } |