Jacek Caban : vbscript: Allow any unary expression after call keyword.

Alexandre Julliard julliard at winehq.org
Mon Oct 28 16:43:36 CDT 2019


Module: wine
Branch: master
Commit: f9bf6f0e1f69c7fc67fa55fc52985dda6f54e5e5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f9bf6f0e1f69c7fc67fa55fc52985dda6f54e5e5

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Oct 28 18:39:59 2019 +0100

vbscript: Allow any unary expression after call keyword.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/vbscript/parser.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/vbscript/parser.y b/dlls/vbscript/parser.y
index aca167d193..0a6bee4351 100644
--- a/dlls/vbscript/parser.y
+++ b/dlls/vbscript/parser.y
@@ -187,7 +187,7 @@ Statement
 
 SimpleStatement
     : MemberExpression ArgumentList_opt     { $$ = new_call_statement(ctx, FALSE, &new_call_expression(ctx, &$1->expr, $2)->expr); CHECK_ERROR; }
-    | tCALL MemberExpression Arguments_opt  { $$ = new_call_statement(ctx, TRUE, &new_call_expression(ctx, &$2->expr, $3)->expr); CHECK_ERROR; }
+    | tCALL UnaryExpression                 { $$ = new_call_statement(ctx, TRUE, $2); CHECK_ERROR; }
     | MemberExpression Arguments_opt '=' Expression
                                             { $$ = new_assign_statement(ctx, &new_call_expression(ctx, &$1->expr, $2)->expr, $4); CHECK_ERROR; }
     | tDIM DimDeclList                      { $$ = new_dim_statement(ctx, $2); CHECK_ERROR; }




More information about the wine-cvs mailing list