mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 23:47:16 +00:00
vbscript: Fix compile when colon follows Else on new line.
This commit is contained in:
parent
c5957eb937
commit
afb2125cdf
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue