From cc48802685c44cdfb1ce5346b3a4dad1a62ec1a7 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Tue, 14 Aug 2012 16:14:26 +0200 Subject: [PATCH] eof after parsing the semicolon of a function declaration shouldn't be an error... --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index eaa5dd1..60857df 100644 --- a/parser.c +++ b/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; -- 2.39.2