vendor/assets/javascripts/codemirror/modes/javascript.js in codemirror-rails-0.3.0 vs vendor/assets/javascripts/codemirror/modes/javascript.js in codemirror-rails-0.3.1

- old
+ new

@@ -52,10 +52,10 @@ else if (ch == "0" && stream.eat(/x/i)) { stream.eatWhile(/[\da-f]/i); return ret("number", "number"); } else if (/\d/.test(ch)) { - stream.match(/^\d*(?:\.\d*)?(?:e[+\-]?\d+)?/); + stream.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/); return ret("number", "number"); } else if (ch == "/") { if (stream.eat("*")) { return chain(stream, state, jsTokenComment);