Permalink
Browse files

Merge pull request #20 from now/ruby19-warnings

Fix shadowed variable warning in Ruby 1.9
  • Loading branch information...
2 parents 89dee46 + 2995b0b commit ab218d0202db0c684ab2313976d86c2a1f9f9a3d @cjheath cjheath committed Nov 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/treetop/compiler/node_classes/sequence.rb
@@ -50,7 +50,7 @@ def initialize(sequence_elements)
@sequence_elements = sequence_elements
end
- def compile(index, builder, rule)
+ def compile(idx, builder, rule)
super
builder.module_declaration(module_name) do
elements_by_name = sequence_elements.inject({}){|h,e| (h[e.label_name.to_s] ||= []) << e; h}

0 comments on commit ab218d0

Please sign in to comment.