patching up the lexer and adding a test with trailing whitespace (it was too string for trailing whitespace before)

This commit is contained in:
Jeremy Ashkenas
2009-12-30 15:10:47 -05:00
parent 9e3ef42c63
commit c822f96145
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ module CoffeeScript
COMMENT = /\A((#[^\n]*\s*)+)/m
CODE = /\A(=>)/
REGEX = /\A(\/(.*?)[^\\]\/[imgy]{0,4})/
MULTI_DENT = /\A((\n+[ \t]*)+)/
MULTI_DENT = /\A((\n+([ \t]*(?=\S)))+)/
LAST_DENT = /\n+([ \t]*)\Z/
# Token cleaning regexes.