mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
return is a keyword
This commit is contained in:
parent
308e24a4d9
commit
331c00dd50
1 changed files with 5 additions and 4 deletions
9
lexer.c
9
lexer.c
|
@ -579,10 +579,11 @@ int lex_do(lex_file *lex)
|
|||
} else if (!strcmp(v, "vector")) {
|
||||
lex->tok->ttype = TOKEN_TYPENAME;
|
||||
lex->tok->constval.t = TYPE_VECTOR;
|
||||
} else if (!strcmp(v, "for") ||
|
||||
!strcmp(v, "while") ||
|
||||
!strcmp(v, "do") ||
|
||||
!strcmp(v, "var") ||
|
||||
} else if (!strcmp(v, "for") ||
|
||||
!strcmp(v, "while") ||
|
||||
!strcmp(v, "do") ||
|
||||
!strcmp(v, "var") ||
|
||||
!strcmp(v, "return") ||
|
||||
!strcmp(v, "const"))
|
||||
lex->tok->ttype = TOKEN_KEYWORD;
|
||||
|
||||
|
|
Loading…
Reference in a new issue