From b3e9ef3ad9f8f9aee8c3472efd2c4485dc684718 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 26 Apr 2013 10:31:38 +0200 Subject: [PATCH] an = before an { is also always required when the declared variable is not a function; adding because of planned array initializers --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 7fba786..506f8d2 100644 --- a/parser.c +++ b/parser.c @@ -5623,7 +5623,7 @@ skipvar: } } - if (parser->tok != '{') { + if (parser->tok != '{' || var->expression.vtype != TYPE_FUNCTION) { if (parser->tok != '=') { parseerror(parser, "missing semicolon or initializer, got: `%s`", parser_tokval(parser)); break; -- 2.39.2