Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Compile flattening in regex subrule arg lists.
  • Loading branch information
jnthn committed Oct 6, 2015
1 parent 5d01ca3 commit caf4c0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vm/moar/QAST/QASTRegexCompilerMAST.nqp
Expand Up @@ -1056,6 +1056,12 @@ class QAST::MASTRegexCompiler {
my $kind := $mast.result_kind;
nqp::push(@result_kinds, $kind);
my $flag := @kind_to_args[$kind];
if $_.flat {
$flag := $flag +| ($_.named ?? $Arg::flatnamed !! $Arg::flat);
}
elsif $_.named {
nqp::die('Named args in regex subrule calls NYI');
}
nqp::push(@flags, $flag);
}
[@masts, @results, @result_kinds, @flags]
Expand Down

0 comments on commit caf4c0f

Please sign in to comment.