eof after parsing the semicolon of a function declaration shouldn't be an error...

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-14 16:14:26 +02:00
parent 78d223fdcb
commit cc48802685

View file

@ -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;