aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/javascript/javascript.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-09 13:36:41 -0800
committerJose Antonio Marquez2012-03-09 13:36:41 -0800
commit9a03f869ff4520431da3ac8c64b748b5fbb60339 (patch)
treedad948f012cbc7d65e0dccde273667a389ff1c6d /imports/codemirror/mode/javascript/javascript.js
parentb0b4a1ee6792d98f06cbd8ecf5291e66db8a4eef (diff)
parentb4eb2f6cc1208fe5c18aa1f02a85adda25075d81 (diff)
downloadninja-9a03f869ff4520431da3ac8c64b748b5fbb60339.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into Color
Diffstat (limited to 'imports/codemirror/mode/javascript/javascript.js')
-rw-r--r--[-rwxr-xr-x]imports/codemirror/mode/javascript/javascript.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/imports/codemirror/mode/javascript/javascript.js b/imports/codemirror/mode/javascript/javascript.js
index be2a0698..b9388bc9 100755..100644
--- a/imports/codemirror/mode/javascript/javascript.js
+++ b/imports/codemirror/mode/javascript/javascript.js
@@ -69,7 +69,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
69 else if (state.reAllowed) { 69 else if (state.reAllowed) {
70 nextUntilUnescaped(stream, "/"); 70 nextUntilUnescaped(stream, "/");
71 stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla 71 stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla
72 return ret("regexp", "string"); 72 return ret("regexp", "string-2");
73 } 73 }
74 else { 74 else {
75 stream.eatWhile(isOperatorChar); 75 stream.eatWhile(isOperatorChar);
@@ -230,7 +230,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
230 if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator); 230 if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator);
231 if (type == "function") return cont(functiondef); 231 if (type == "function") return cont(functiondef);
232 if (type == "keyword c") return cont(maybeexpression); 232 if (type == "keyword c") return cont(maybeexpression);
233 if (type == "(") return cont(pushlex(")"), expression, expect(")"), poplex, maybeoperator); 233 if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator);
234 if (type == "operator") return cont(expression); 234 if (type == "operator") return cont(expression);
235 if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator); 235 if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator);
236 if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator); 236 if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);