mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-13 08:47:55 -05:00
added the ! sign as an allowed operator
This commit is contained in:
@@ -26,7 +26,7 @@ breaker: if typeof(StopIteration) is 'undefined' then '__break__' else StopItera
|
||||
_: root._: obj => new wrapper(obj).
|
||||
|
||||
# Export the Underscore object for CommonJS.
|
||||
exports._: _ if typeof(exports) aint 'undefined'
|
||||
if typeof(exports) != 'undefined' then exports._: _.
|
||||
|
||||
# Create quick reference variables for speed access to core prototypes.
|
||||
slice: Array.prototype.slice
|
||||
|
||||
@@ -22,7 +22,7 @@ module CoffeeScript
|
||||
NUMBER = /\A\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?(e[+\-]?[0-9]+)?))\b/i
|
||||
STRING = /\A(""|''|"(.*?)[^\\]"|'(.*?)[^\\]')/m
|
||||
JS = /\A(``|`(.*?)[^\\]`)/m
|
||||
OPERATOR = /\A([+\*&|\/\-%=<>:]+)/
|
||||
OPERATOR = /\A([+\*&|\/\-%=<>:!]+)/
|
||||
WHITESPACE = /\A([ \t\r]+)/
|
||||
NEWLINE = /\A(\n+)/
|
||||
COMMENT = /\A((#[^\n]*\s*)+)/m
|
||||
|
||||
Reference in New Issue
Block a user