Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure that <sym> captures.
  • Loading branch information
jnthn committed Nov 16, 2011
1 parent 0bbd9c1 commit 2668e04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -319,7 +319,8 @@ class QRegex::P6Regex::Actions is HLL::Actions {
nqp::substr(%*RX<name>,
nqp::index(%*RX<name>, ':sym<') + 5),
1);
$qast := QAST::Regex.new(:rxtype<literal>, $rxname, :node($/));
$qast := QAST::Regex.new(:name('sym'), :rxtype<subcapture>, :node($/),
QAST::Regex.new(:rxtype<literal>, $rxname, :node($/)));
}
else {
$qast := QAST::Regex.new(:rxtype<subrule>, :subtype<capture>,
Expand Down

0 comments on commit 2668e04

Please sign in to comment.