Commit afb2125c authored by Jason Millard's avatar Jason Millard Committed by Alexandre Julliard

vbscript: Fix compile when colon follows Else on new line.

parent c5957eb9
......@@ -319,8 +319,7 @@ ElseIf
Else_opt
: /* empty */ { $$ = NULL; }
| tELSE tNL StatementsNl_opt { $$ = $3; }
| tELSE StatementsNl_opt { $$ = $2; }
| tELSE StSep_opt StatementsNl_opt { $$ = $3; }
CaseClausules
: /* empty */ { $$ = NULL; }
......
......@@ -298,6 +298,15 @@ Else x = true
End If
Call ok(x, "else not called?")
' Else with colon before statement following newline
x = false
If false Then
Call ok(false, "inside if false")
Else
: x = true
End If
Call ok(x, "else not called?")
x = false
If false Then
Call ok(false, "inside if false")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment