mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
eof after parsing the semicolon of a function declaration shouldn't be an error...
This commit is contained in:
parent
78d223fdcb
commit
cc48802685
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -1622,7 +1622,7 @@ static bool parser_variable(parser_t *parser, ast_block *localblock)
|
|||
}
|
||||
|
||||
if (parser->tok == ';')
|
||||
return parser_next(parser);
|
||||
return parser_next(parser) || parser->tok == TOKEN_EOF;
|
||||
else if (opts_standard == COMPILER_QCC)
|
||||
parseerror(parser, "missing semicolon after function body (mandatory with -std=qcc)");
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue