Skip to content

Commit

Permalink
Use the P5Regex qbuildsub when needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 29, 2012
1 parent 7d227de commit d14be4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Actions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2462,7 +2462,9 @@ class Perl6::Actions is HLL::Actions {
$block[0].push(QAST::Var.new(:name<$/>, :scope<lexical>, :decl('var')));
$block.symbol('$/', :scope<lexical>, :lazyinit(1));
}
$past := QRegex::P6Regex::Actions::qbuildsub($qast, $block);
$past := %*RX<P5>
?? QRegex::P5Regex::Actions::qbuildsub($qast, $block)
!! QRegex::P6Regex::Actions::qbuildsub($qast, $block);
}
$past.name($name);
$past.blocktype("declaration");
Expand Down

0 comments on commit d14be4f

Please sign in to comment.