diff options
Diffstat (limited to 'lexer.c')
-rw-r--r-- | lexer.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -361,7 +361,8 @@ uint64_t lex(char *str, uint64_t address, uint8_t dbg) { break; case PTOK_SQUOTE: i++; - k = j; + k = 0; + j = 0; while (isdelm(str[i], dbg) != 8 || isesc) { isesc = (str[i] == '\\' && str[i-1] != '\\'); lexeme[j++] = str[i++]; @@ -373,6 +374,7 @@ uint64_t lex(char *str, uint64_t address, uint8_t dbg) { switch (lexeme[++k]) { case 'n' : ch = '\n'; break; case 'r' : ch = '\r'; break; + case 't' : ch = '\t'; break; case 'b' : ch = '\b'; break; case '\'': ch = '\''; break; case '\"': ch = '\"'; break; |