From: Francis De Brabandere <francisdb@gmail.com> --- dlls/vbscript/parser.y | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/vbscript/parser.y b/dlls/vbscript/parser.y index 4bc321e47c9..b89f5c059b7 100644 --- a/dlls/vbscript/parser.y +++ b/dlls/vbscript/parser.y @@ -756,9 +756,7 @@ static call_expression_t *make_call_expression(parser_ctx_t *ctx, expression_t * return call_expr; if(arguments->type != EXPR_NOARG) { - /* Handle 'f (x) + expr, ...' in statement context: the parser saw f(x) as - * a call with arg x, and '+ expr' as a unary-plus expression. Windows VBScript - * treats this as f called with (x) + expr as first arg, followed by remaining args. */ + /* 'f (x) + expr, ...' — combine bracketed arg with the +/- expression. */ expression_t *remaining = arguments->next; call_expr->args = new_binary_expression(ctx, EXPR_ADD, call_expr->args, arguments); if(!call_expr->args) @@ -1088,7 +1086,7 @@ static function_decl_t *new_function_decl(parser_ctx_t *ctx, const WCHAR *name, decl->args = arg_decl; decl->body = body; decl->next = NULL; - decl->next_prop_func = NULL; + devbscript: more parentheses related parser fixescl->next_prop_func = NULL; return decl; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10244