vbscript: Improve parsing of separators after Option Explicit.
Signed-off-by: Dmitry Kislyuk <dimaki@rocketmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0b5473c166
commit
5193b6fa69
|
@ -148,7 +148,7 @@ Program
|
|||
|
||||
OptionExplicit_opt
|
||||
: /* empty */ { $$ = FALSE; }
|
||||
| tOPTION tEXPLICIT tNL { $$ = TRUE; }
|
||||
| tOPTION tEXPLICIT StSep { $$ = TRUE; }
|
||||
|
||||
SourceElements
|
||||
: /* empty */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
' Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
'
|
||||
|
||||
Option Explicit
|
||||
OPTION EXPLICIT : : DIM W
|
||||
|
||||
dim x, y, z
|
||||
Dim obj
|
||||
|
@ -53,6 +53,9 @@ Call ok(false = 0, "false <> 0")
|
|||
Call ok(&hff = 255, "&hff <> 255")
|
||||
Call ok(&Hff = 255, "&Hff <> 255")
|
||||
|
||||
W = 5
|
||||
Call ok(W = 5, "W = " & W & " expected " & 5)
|
||||
|
||||
x = "xx"
|
||||
Call ok(x = "xx", "x = " & x & " expected ""xx""")
|
||||
|
||||
|
|
Loading…
Reference in New Issue