Skip to content

Commit 28bf11c

Browse files
committed
Implemnt (?m).
1 parent 08e45ac commit 28bf11c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QRegex/P5Regex/Actions.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
7575
}
7676

7777
method p5metachar:sym<^>($/) {
78-
make QAST::Regex.new( :rxtype<anchor>, :subtype<bos>, :node($/) );
78+
make QAST::Regex.new( :rxtype<anchor>, :subtype(%*RX<m> ?? 'bol' !! 'bos'), :node($/) );
7979
}
8080

8181
method p5metachar:sym<$>($/) {
@@ -85,7 +85,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
8585
:rxtype('quant'), :min(0), :max(1),
8686
QAST::Regex.new( :rxtype('literal'), "\n" )
8787
),
88-
QAST::Regex.new( :rxtype<anchor>, :subtype<eos>, :node($/) )
88+
QAST::Regex.new( :rxtype<anchor>, :subtype(%*RX<m> ?? 'eol' !! 'eos'), :node($/) )
8989
);
9090
}
9191

0 commit comments

Comments
 (0)