lib/regextest/front/back-refer.rb in regextest-0.1.4 vs lib/regextest/front/back-refer.rb in regextest-0.1.5
- old
+ new
@@ -43,10 +43,10 @@
@paren_obj = @options[:parens].get_paren(md[1])
else
raise "internal error: unexpected refer #{value}"
end
if md[5]
- @relative_num = md[3].to_i
+ @relative_num = md[5].to_i
end
else
raise "Error: Internal error, invalid named reference"
end
when :LEX_NAMED_GENERATE # a pattern like \g<foo>