mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
smarter but uglier lexer -- now handles most significant whitespace cases. Clean it up though... (newlines after outdents)
This commit is contained in:
15
test/fixtures/generation/whitespace.coffee
vendored
15
test/fixtures/generation/whitespace.coffee
vendored
@@ -4,6 +4,21 @@ f1: x =>
|
||||
f2: y =>
|
||||
y * x
|
||||
|
||||
|
||||
|
||||
|
||||
f3: 3
|
||||
|
||||
# Parens can close on the proper level.
|
||||
elements.each(el =>
|
||||
el.click(event =>
|
||||
el.reset()
|
||||
el.show() if event.active
|
||||
)
|
||||
)
|
||||
|
||||
# Or, parens can close blocks early.
|
||||
elements.each(el =>
|
||||
el.click(event =>
|
||||
el.reset()
|
||||
el.show() if event.active))
|
||||
Reference in New Issue
Block a user