fix broken simplenum regex for rangenodes...

This commit is contained in:
Jeremy Ashkenas 2010-09-01 21:20:23 -04:00
parent a1ebb14495
commit 9290e508c6
2 changed files with 2 additions and 2 deletions

View File

@ -1886,7 +1886,7 @@
TRAILING_WHITESPACE = /[ \t]+$/gm; TRAILING_WHITESPACE = /[ \t]+$/gm;
IDENTIFIER = /^[a-zA-Z\$_](\w|\$)*$/; IDENTIFIER = /^[a-zA-Z\$_](\w|\$)*$/;
NUMBER = /^(((\b0(x|X)[0-9a-fA-F]+)|((\b[0-9]+(\.[0-9]+)?|\.[0-9]+)(e[+\-]?[0-9]+)?)))\b$/i; NUMBER = /^(((\b0(x|X)[0-9a-fA-F]+)|((\b[0-9]+(\.[0-9]+)?|\.[0-9]+)(e[+\-]?[0-9]+)?)))\b$/i;
SIMPLENUM = /^-?\d+/; SIMPLENUM = /^-?\d+$/;
IS_STRING = /^['"]/; IS_STRING = /^['"]/;
literal = function(name) { literal = function(name) {
return new LiteralNode(name); return new LiteralNode(name);

View File

@ -1605,7 +1605,7 @@ TRAILING_WHITESPACE = /[ \t]+$/gm
# Keep these identifier regexes in sync with the Lexer. # Keep these identifier regexes in sync with the Lexer.
IDENTIFIER = /^[a-zA-Z\$_](\w|\$)*$/ IDENTIFIER = /^[a-zA-Z\$_](\w|\$)*$/
NUMBER = /^(((\b0(x|X)[0-9a-fA-F]+)|((\b[0-9]+(\.[0-9]+)?|\.[0-9]+)(e[+\-]?[0-9]+)?)))\b$/i NUMBER = /^(((\b0(x|X)[0-9a-fA-F]+)|((\b[0-9]+(\.[0-9]+)?|\.[0-9]+)(e[+\-]?[0-9]+)?)))\b$/i
SIMPLENUM = /^-?\d+/ SIMPLENUM = /^-?\d+$/
# Is a literal value a string? # Is a literal value a string?
IS_STRING = /^['"]/ IS_STRING = /^['"]/