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 96859e749b
commit 02c19b3170
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.

View File

@@ -6,12 +6,12 @@ FirstChild: =>
FirstChild extends Base
FirstChild.prototype.func: string =>
super('one/') + string
SecondChild: =>
SecondChild extends FirstChild
SecondChild.prototype.func: string =>
super('two/') + string
ThirdChild: =>
ThirdChild extends SecondChild
ThirdChild.prototype.func: string =>