Skip to content

Commit

Permalink
Merge pull request #168 from cognominal/master
Browse files Browse the repository at this point in the history
Fixing --target=parse on nqp
  • Loading branch information
FROGGS committed May 5, 2014
2 parents 6c1ac9f + 03349b2 commit 0d764f8
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/QRegex/Cursor.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -751,19 +751,23 @@ class NQPMatch is NQPCapture {
}

my int $i := 0;
for self.list() {
if $_ {
nqp::islist($_)
?? dump_match_array(@chunks, $indent, $i, $_)
!! dump_match(@chunks, $indent, $i, $_);
}
$i := $i + 1;
if self.list() {
for self.list() {
if $_ {
nqp::islist($_)
?? dump_match_array(@chunks, $indent, $i, $_)
!! dump_match(@chunks, $indent, $i, $_);
}
$i := $i + 1;
}
}
for self.hash() {
if $_.value {
nqp::islist($_.value)
?? dump_match_array(@chunks, $indent, $_.key, $_.value)
!! dump_match(@chunks, $indent, $_.key, $_.value);
if self.hash() {
for self.hash() {
if $_.value {
nqp::islist($_.value)
?? dump_match_array(@chunks, $indent, $_.key, $_.value)
!! dump_match(@chunks, $indent, $_.key, $_.value);
}
}
}
return join('', @chunks);
Expand Down

0 comments on commit 0d764f8

Please sign in to comment.