Jacek Caban : jscript: Added support for no new line between continue and identifier rule.
Alexandre Julliard
julliard at winehq.org
Mon Sep 10 15:22:12 CDT 2012
Module: wine
Branch: master
Commit: f1642ce1fc4486a28cd5df07a654486075880eb7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1642ce1fc4486a28cd5df07a654486075880eb7
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Sep 10 14:45:06 2012 +0200
jscript: Added support for no new line between continue and identifier rule.
---
dlls/jscript/lex.c | 2 +-
dlls/jscript/tests/lang.js | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/dlls/jscript/lex.c b/dlls/jscript/lex.c
index 39a1197..7e0e2fc 100644
--- a/dlls/jscript/lex.c
+++ b/dlls/jscript/lex.c
@@ -73,7 +73,7 @@ static const struct {
{breakW, kBREAK, TRUE},
{caseW, kCASE},
{catchW, kCATCH},
- {continueW, kCONTINUE},
+ {continueW, kCONTINUE, TRUE},
{defaultW, kDEFAULT},
{deleteW, kDELETE},
{doW, kDO},
diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js
index d7f6884..d3908ad 100644
--- a/dlls/jscript/tests/lang.js
+++ b/dlls/jscript/tests/lang.js
@@ -1372,6 +1372,12 @@ while(true) {
tmp = false
}
+while(true) {
+ break
+ continue
+ tmp = false
+}
+
/* Keep this test in the end of file */
undefined = 6;
ok(undefined === 6, "undefined = " + undefined);
More information about the wine-cvs
mailing list