Permalink
Browse files

Minor fixes.

  • Loading branch information...
1 parent 3279ddf commit f26856a1a1e4f60329ff181463a8647ce3b78119 @whitequark committed Apr 7, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/furnace/cfg/node.rb
  2. +1 −1 lib/furnace/code/token.rb
View
@@ -38,10 +38,12 @@ def ==(other)
end
def inspect
- if @label || @insns.any?
+ if @label && @insns
"<#{@label}:#{@insns.map(&:inspect).join ", "}>"
+ elsif @insns
+ "<!unlabeled>"
else
- "<!dummy>"
+ "<!exit>"
end
end
end
@@ -34,7 +34,7 @@ def to_structure(options={})
protected
- def indent(code, options)
+ def indent(code, options=@options)
unless code.empty?
code.to_s.gsub(/^/, (options[:indent_with] || ' ') * (options[:level] || 1))
else

0 comments on commit f26856a

Please sign in to comment.