mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-13 16:57:54 -05:00
patching up the lexer and adding a test with trailing whitespace (it was too string for trailing whitespace before)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user