Skip to content

Commit

Permalink
Modified previous patch to work on Ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cjheath committed Jul 17, 2009
1 parent aac6359 commit 80d7c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/treetop/runtime/compiled_parser.rb
Expand Up @@ -87,7 +87,7 @@ def has_terminal?(terminal, regex, index)
rx = @regexps[terminal] ||= Regexp.new(terminal)
input.index(rx, index) == index
else
input[index] == terminal[0] && input.index(terminal, index) == index
input[index, terminal.size] == terminal
end
end

Expand Down

0 comments on commit 80d7c9a

Please sign in to comment.