Permalink
Browse files

Correct alignment of line numbers

  • Loading branch information...
1 parent 01b92e5 commit 4aedd40f053d4f95c0b4f9e977a47e3200c59cb1 @komax committed Jul 11, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 bin/ast
View
@@ -208,11 +208,10 @@ def ir_setup(root)
end
module IRPrettyPrinter
-
def self.pretty_ir(scope, indent="")
i = 0
pretty_str = scope.instrs.map do |instr|
- f_str = indent + "#{i}\s" + instr.to_s
+ f_str = "%s%3i\s\s%s" % [indent, i, instr]
i += 1
f_str
end

0 comments on commit 4aedd40

Please sign in to comment.