Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
502df086
Commit
502df086
authored
Nov 16, 2022
by
Jason Millard
Committed by
Alexandre Julliard
Nov 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Update parser to allow statements after ELSE without new line.
parent
2705f791
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
parser.y
dlls/vbscript/parser.y
+1
-0
lang.vbs
dlls/vbscript/tests/lang.vbs
+8
-0
No files found.
dlls/vbscript/parser.y
View file @
502df086
...
...
@@ -318,6 +318,7 @@ ElseIf
Else_opt
: /* empty */ { $$ = NULL; }
| tELSE tNL StatementsNl_opt { $$ = $3; }
| tELSE StatementsNl_opt { $$ = $2; }
CaseClausules
: /* empty */ { $$ = NULL; }
...
...
dlls/vbscript/tests/lang.vbs
View file @
502df086
...
...
@@ -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"
)
...
...
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