- Timestamp:
- 08/16/08 06:48:21 (3 months ago)
- Files:
-
- 1 modified
-
src/perl6/Cursor.pmc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/perl6/Cursor.pmc
r21904 r21905 564 564 my @result; 565 565 while (not @result and $$trylen >= 0) { 566 $self->deb("Trying at length $$trylen\n") if $DEBUG & DEBUG::fixed_length; 566 567 for my $px (0..@pats-1) { 567 568 next if vec($$tried,$px,1); # already tried this one 568 569 my $l = $$rxlens[$px]; 569 570 if ($l == -1) { 570 my $p = '^' .$pats[$px];571 my $p = $pats[$px]; 571 572 pos($$buf) = $P; 572 if (($$buf =~ m/ $p/xgc)) {573 if (($$buf =~ m/\G$p/gc)) { 573 574 $$rxlens[$px] = $l = pos($$buf) - $P; 574 575 if ($l == $$trylen) { … … 589 590 } 590 591 else { 591 my $p = '^' .$pats[$px];592 my $p = $pats[$px]; 592 593 pos($$buf) = $P; 593 if ($$buf =~ m/ $p/xgc) {594 if ($$buf =~ m/\G$p/gc) { 594 595 push @result, $fates->[$px]; 595 596 }
