We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e45ac commit 28bf11cCopy full SHA for 28bf11c
src/QRegex/P5Regex/Actions.nqp
@@ -75,7 +75,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
75
}
76
77
method p5metachar:sym<^>($/) {
78
- make QAST::Regex.new( :rxtype<anchor>, :subtype<bos>, :node($/) );
+ make QAST::Regex.new( :rxtype<anchor>, :subtype(%*RX<m> ?? 'bol' !! 'bos'), :node($/) );
79
80
81
method p5metachar:sym<$>($/) {
@@ -85,7 +85,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
85
:rxtype('quant'), :min(0), :max(1),
86
QAST::Regex.new( :rxtype('literal'), "\n" )
87
),
88
- QAST::Regex.new( :rxtype<anchor>, :subtype<eos>, :node($/) )
+ QAST::Regex.new( :rxtype<anchor>, :subtype(%*RX<m> ?? 'eol' !! 'eos'), :node($/) )
89
);
90
91
0 commit comments