added the ! sign as an allowed operator

This commit is contained in:
Jeremy Ashkenas
2009-12-23 21:00:04 -05:00
parent 5f9a190683
commit eae53d4787
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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