fix(lexer): POKEDALLARS
This commit is contained in:
parent
687f38523b
commit
609c1667af
2 changed files with 1 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ static bool is_special_char(char c)
|
||||||
if (c == EOF)
|
if (c == EOF)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
char special_chars[] = "\n'\"`;#|&\\$(){}<>*";
|
char special_chars[] = "\n'\"`;#|&\\(){}<>*";
|
||||||
return strchr(special_chars, c) != NULL;
|
return strchr(special_chars, c) != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@ static void set_token_spechar(struct token *tok, char *begin, ssize_t size)
|
||||||
case '\\':
|
case '\\':
|
||||||
tok->type = TOKEN_BACKSLASH;
|
tok->type = TOKEN_BACKSLASH;
|
||||||
break;
|
break;
|
||||||
case '$':
|
|
||||||
tok->type = TOKEN_DOLLAR;
|
|
||||||
break;
|
|
||||||
case '(':
|
case '(':
|
||||||
tok->type = TOKEN_LEFT_PAREN;
|
tok->type = TOKEN_LEFT_PAREN;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue