Permalink
Browse files

Restore old labeled break semantics

  • Loading branch information...
1 parent 197038d commit b1a2614ed09ad8fb9d9a7d5b4b6f39e4e3cc3ada @lennartcl lennartcl committed Feb 20, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/ace/mode/javascript/jshint.js
@@ -1925,16 +1925,19 @@ klass:
for (;;) {
minus = false;
+ var breakOuterLoop = false;
for (;;) {
if (t.type === "special" && t.value === "*/") {
- minus = false;
- continue;
+ breakOuterLoop = true;
+ break;
}
if (t.id !== "(endline)" && t.id !== ",") {
break;
}
t = lex.token();
}
+ if (breakOuterLoop)
+ break;
if (o === "/*global" && t.value === "-") {
minus = true;
@@ -4835,4 +4838,4 @@ if (typeof exports === "object" && exports) {
exports.JSHINT = JSHINT;
}
-});
+});

0 comments on commit b1a2614

Please sign in to comment.