Commit 502df086 authored by Jason Millard's avatar Jason Millard Committed by Alexandre Julliard

vbscript: Update parser to allow statements after ELSE without new line.

parent 2705f791
......@@ -318,6 +318,7 @@ ElseIf
Else_opt
: /* empty */ { $$ = NULL; }
| tELSE tNL StatementsNl_opt { $$ = $3; }
| tELSE StatementsNl_opt { $$ = $2; }
CaseClausules
: /* empty */ { $$ = NULL; }
......
......@@ -282,6 +282,14 @@ Else
End If
Call ok(x, "else not called?")
' Else without 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