vendor/assets/javascripts/codemirror/modes/javascript.js in codemirror-rails-0.2.3 vs vendor/assets/javascripts/codemirror/modes/javascript.js in codemirror-rails-0.3.0
- old
+ new
@@ -73,9 +73,13 @@
else {
stream.eatWhile(isOperatorChar);
return ret("operator", null, stream.current());
}
}
+ else if (ch == "#") {
+ stream.skipToEnd();
+ return ret("error", "error");
+ }
else if (isOperatorChar.test(ch)) {
stream.eatWhile(isOperatorChar);
return ret("operator", null, stream.current());
}
else {