fix(lexer): typo on export
This commit is contained in:
parent
115377edfe
commit
1367598047
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ static void set_token_keyword(struct token *tok, char *begin, ssize_t size)
|
||||||
else if (strncmp(begin, "elif", size) == 0 && size == 4)
|
else if (strncmp(begin, "elif", size) == 0 && size == 4)
|
||||||
tok->type = TOKEN_ELIF;
|
tok->type = TOKEN_ELIF;
|
||||||
else if (strncmp(begin, "export", size) == 0 && size == 6)
|
else if (strncmp(begin, "export", size) == 0 && size == 6)
|
||||||
tok->type = TOKEN_ELIF;
|
tok->type = TOKEN_EXPORT;
|
||||||
|
|
||||||
// no keywords found.
|
// no keywords found.
|
||||||
if (tok->type == TOKEN_NULL)
|
if (tok->type == TOKEN_NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue