mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
return is a keyword
This commit is contained in:
parent
308e24a4d9
commit
331c00dd50
1 changed files with 5 additions and 4 deletions
1
lexer.c
1
lexer.c
|
@ -583,6 +583,7 @@ int lex_do(lex_file *lex)
|
||||||
!strcmp(v, "while") ||
|
!strcmp(v, "while") ||
|
||||||
!strcmp(v, "do") ||
|
!strcmp(v, "do") ||
|
||||||
!strcmp(v, "var") ||
|
!strcmp(v, "var") ||
|
||||||
|
!strcmp(v, "return") ||
|
||||||
!strcmp(v, "const"))
|
!strcmp(v, "const"))
|
||||||
lex->tok->ttype = TOKEN_KEYWORD;
|
lex->tok->ttype = TOKEN_KEYWORD;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue