make nested implicit indentation just a little bit smarter about outdents and stack levels

This commit is contained in:
Jeremy Ashkenas
2010-01-26 14:49:33 -05:00
parent 3775f682de
commit ab4a4a5580
2 changed files with 15 additions and 2 deletions

View File

@@ -54,4 +54,13 @@ print true unless false
print true for i in [1..3]
print_func: (f) -> print(f())
print_func -> true
print_func -> true
# Optional parens can be used in a nested fashion.
call: (func) -> func()
result: call ->
inner: call ->
Math.Add(5, 5)
print result is 10