diff --git a/examples/underscore.cs b/examples/underscore.cs index 20b1fafe..56abbb53 100644 --- a/examples/underscore.cs +++ b/examples/underscore.cs @@ -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 diff --git a/lib/coffee_script/lexer.rb b/lib/coffee_script/lexer.rb index b511d0a7..a67e3050 100644 --- a/lib/coffee_script/lexer.rb +++ b/lib/coffee_script/lexer.rb @@ -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