mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
patched up lexer to add indentation to single-line flavors of statements -- let's expand this idea
This commit is contained in:
@@ -694,7 +694,7 @@ module CoffeeScript
|
||||
|
||||
# Rewrite a chain of IfNodes to add a default case as the final else.
|
||||
def add_else(expressions)
|
||||
chain? ? @else_body.add_else(expressions) : @else_body = expressions
|
||||
chain? ? @else_body.add_else(expressions) : @else_body = expressions.unwrap
|
||||
self
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user