Skip to content

Commit

Permalink
Merge pull request #116 from timo/ROUTINE_in_regex
Browse files Browse the repository at this point in the history
Routine in regex/token/rule
  • Loading branch information
jnthn committed Mar 13, 2013
2 parents a98aa70 + f440d46 commit 3536942
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Actions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2619,6 +2619,9 @@ class Perl6::Actions is HLL::Actions does STDActions {
$coderef := regex_coderef($/, $*DECLARAND, $<nibble>.ast, $*SCOPE, $name, %sig_info, $*CURPAD, $<trait>);
}

# Install &?ROUTINE.
$*W.install_lexical_symbol($*CURPAD, '&?ROUTINE', $*DECLARAND);

# Return closure if not in sink context.
my $closure := block_closure($coderef);
$closure<sink_past> := QAST::Op.new( :op('null') );
Expand Down

0 comments on commit 3536942

Please sign in to comment.