From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 18:20:00 +0000 (+0100) Subject: Parse the 'not' keyword in if as TOKEN_IDENT X-Git-Tag: 0.1.9~250 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=55aa53becaab6c63d5367dccadb46a86d5a9ae92 Parse the 'not' keyword in if as TOKEN_IDENT --- diff --git a/parser.c b/parser.c index 40af422..69e89d5 100644 --- a/parser.c +++ b/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");