mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
fix broken simplenum regex for rangenodes...
This commit is contained in:
parent
a1ebb14495
commit
9290e508c6
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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 = /^['"]/
|
||||||
|
|
Loading…
Add table
Reference in a new issue