smarter but uglier lexer -- now handles most significant whitespace cases. Clean it up though... (newlines after outdents)

This commit is contained in:
Jeremy Ashkenas
2009-12-26 13:22:53 -08:00
parent fde9852090
commit cc0c92d20d
2 changed files with 60 additions and 3 deletions

View File

@@ -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))