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
afb2125c
Commit
afb2125c
authored
Feb 09, 2023
by
Jason Millard
Committed by
Alexandre Julliard
Feb 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Fix compile when colon follows Else on new line.
parent
c5957eb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
parser.y
dlls/vbscript/parser.y
+1
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+9
-0
No files found.
dlls/vbscript/parser.y
View file @
afb2125c
...
...
@@ -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; }
...
...
dlls/vbscript/tests/lang.vbs
View file @
afb2125c
...
...
@@ -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"
)
...
...
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