mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-25 03:51:26 +00:00
Parse the 'not' keyword in if as TOKEN_IDENT
This commit is contained in:
parent
ca033e5acd
commit
55aa53beca
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -1701,7 +1701,7 @@ static bool parse_if(parser_t *parser, ast_block *block, ast_expression **out)
|
|||
parseerror(parser, "expected condition or 'not'");
|
||||
return false;
|
||||
}
|
||||
if (parser->tok == TOKEN_KEYWORD && !strcmp(parser_tokval(parser), "not")) {
|
||||
if (parser->tok == TOKEN_IDENT && !strcmp(parser_tokval(parser), "not")) {
|
||||
ifnot = true;
|
||||
if (!parser_next(parser)) {
|
||||
parseerror(parser, "expected condition in parenthesis");
|
||||
|
|
Loading…
Reference in a new issue