Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add 2.3e4 syntax for numbers.

  • Loading branch information...
commit e6bbb62a2d92b82420d1c50eeaead37f5c4fca68 1 parent 367eeac
@non non authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/lexer.js
View
2  src/lexer.js
@@ -10,7 +10,7 @@ var IDENTIFIER = new RegExp(
unicode.ECMA.identifier.source.replace('\\u03BB', '')
);
-var NUMBER = /^-?[0-9]+(\.[0-9]+)?/;
+var NUMBER = /^-?[0-9]+(\.[0-9]+)?(e-?[0-9]+)?/;
var COMMENT = /^\/\/.*/;
var WHITESPACE = /^[^\n\S]+/;
var INDENT = /^(?:\n[^\n\S]*)+/;
Please sign in to comment.
Something went wrong with that request. Please try again.