Skip to content

Commit

Permalink
fixed continuing_to_match to call things on the right object
Browse files Browse the repository at this point in the history
  • Loading branch information
coatl committed Jun 17, 2009
1 parent c61af06 commit 09f6055
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions regcompiler.rb
Expand Up @@ -2147,10 +2147,10 @@ def initialize progress, *regs
end
end
def continuing_to_match
@threads.each{|thr| progress=thr[:progress]
def continuing_to_match progress
@threads.each{|thr| thr_progress=thr[:progress]
progress.variable_names.each{|vname|
raw_register_var vname,progress.raw_variable(vname)
progress.raw_register_var vname,thr_progress.raw_variable(vname)
}
}
Expand Down Expand Up @@ -2199,7 +2199,7 @@ def try_match
#p :end_try_match, @progress.cursor.pos
continuing_to_match if respond_to? :continuing_to_match
continuing_to_match(@progress) if respond_to? :continuing_to_match
return true
end
Expand Down

0 comments on commit 09f6055

Please sign in to comment.