From a4d014549b321a5c19067cb8d202e9de83ab703f Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Wed, 23 Dec 2009 19:42:44 -0500 Subject: [PATCH] broken waypoint, but fixed line numbers with the new JS comments --- lib/coffee_script/lexer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coffee_script/lexer.rb b/lib/coffee_script/lexer.rb index 5cf50aa0..5ea07844 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(`(.*?)`)/ - OPERATOR = /\A([+\*&|\/\-%=<>]+)/ + OPERATOR = /\A([+\*&|\/\-%=<>:]+)/ WHITESPACE = /\A([ \t\r]+)/ NEWLINE = /\A(\n+)/ COMMENT = /\A((#[^\n]*\s*)+)/m