Skip to content

Commit

Permalink
Style number with the number style in js mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jul 19, 2011
1 parent 50fa1bb commit 80008ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mode/javascript/javascript.js
Expand Up @@ -51,11 +51,11 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
return ret(ch);
else if (ch == "0" && stream.eat(/x/i)) {
stream.eatWhile(/[\da-f]/i);
return ret("number", "atom");
return ret("number", "number");
}
else if (/\d/.test(ch)) {
stream.match(/^\d*(?:\.\d*)?(?:e[+\-]?\d+)?/);
return ret("number", "atom");
return ret("number", "number");
}
else if (ch == "/") {
if (stream.eat("*")) {
Expand Down

0 comments on commit 80008ff

Please sign in to comment.