mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
Allow dangling semicolons for now
This commit is contained in:
parent
f2887f1208
commit
779c974511
1 changed files with 8 additions and 0 deletions
8
parser.c
8
parser.c
|
@ -2330,6 +2330,14 @@ static bool parse_statement(parser_t *parser, ast_block *block, ast_expression *
|
|||
*out = (ast_expression*)inner;
|
||||
return true;
|
||||
}
|
||||
else if (parser->tok == ';')
|
||||
{
|
||||
if (!parser_next(parser)) {
|
||||
parseerror(parser, "parse error after empty statement");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ast_expression *exp = parse_expression(parser, false);
|
||||
|
|
Loading…
Reference in a new issue