Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix shadowed variable warning in Ruby 1.9 #20

Merged
merged 1 commit into from

2 participants

@now
now commented

No description provided.

@cjheath cjheath merged commit ab218d0 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 4, 2011
  1. Fix shadowed variable warning in Ruby 1.9

    Nikolai Weibull authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/treetop/compiler/node_classes/sequence.rb
View
2  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}
Something went wrong with that request. Please try again.