Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
887e72b2
Commit
887e72b2
authored
Feb 14, 2023
by
Jason Millard
Committed by
Alexandre Julliard
Feb 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Fix compile when statement after ElseIf or after separator.
parent
aa7a6b8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
parser.y
dlls/vbscript/parser.y
+1
-1
lang.vbs
dlls/vbscript/tests/lang.vbs
+17
-0
No files found.
dlls/vbscript/parser.y
View file @
887e72b2
...
...
@@ -314,7 +314,7 @@ ElseIfs
| ElseIf ElseIfs { $1->next = $2; $$ = $1; }
ElseIf
: tELSEIF Expression tTHEN
tNL
StatementsNl_opt
: tELSEIF Expression tTHEN
StSep_opt
StatementsNl_opt
{ $$ = new_elseif_decl(ctx, @$, $2, $5); }
Else_opt
...
...
dlls/vbscript/tests/lang.vbs
View file @
887e72b2
...
...
@@ -337,6 +337,23 @@ ElseIf not False Then
End
If
Call
ok
(
x
,
"elseif not called?"
)
' ElseIf with statement on same line
x
=
false
If
false
Then
Call
ok
(
false
,
"inside if false"
)
ElseIf
not
False
Then
x
=
true
End
If
Call
ok
(
x
,
"elseif not called?"
)
' ElseIf with statement following statement separator
x
=
false
If
false
Then
Call
ok
(
false
,
"inside if false"
)
ElseIf
not
False
Then
:
x
=
true
End
If
Call
ok
(
x
,
"elseif not called?"
)
x
=
false
if
1
then
x
=
true
Call
ok
(
x
,
"if 1 not run?"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment