many more comments, plus a fix for inner-assignment indentation

This commit is contained in:
Jeremy Ashkenas
2009-12-17 22:13:29 -05:00
parent 8511a33b1e
commit 68bc68c1ac
7 changed files with 180 additions and 181 deletions

View File

@@ -205,7 +205,7 @@ class AssignNode < Node
name = @variable.compile(indent, scope) if @variable.respond_to?(:compile)
last = @variable.respond_to?(:last) ? @variable.last : name
opts = opts.merge({:assign => name, :last_assign => last})
value = @value.compile(indent, scope, opts)
value = @value.compile(indent + TAB, scope, opts)
return "#{@variable}: #{value}" if @context == :object
return "#{name} = #{value}" if @variable.properties?
defined = scope.find(name)