File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ class QRegex::P6Regex::Actions is HLL::Actions {
59
59
my $ ast := $ _ . ast;
60
60
if $ ast {
61
61
if $ lastlit && $ ast . rxtype eq ' literal'
62
- && ! QAST ::Node. ACCEPTS ($ ast [0 ]) {
62
+ && ! QAST ::Node. ACCEPTS ($ ast [0 ])
63
+ && $ lastlit . subtype eq $ ast . subtype {
63
64
$ lastlit [0 ] := $ lastlit [0 ] ~ $ ast [0 ];
64
65
}
65
66
else {
Original file line number Diff line number Diff line change 25
25
# todo :pugs<feature>
26
26
:1i bcd aBCDef y ignorecase, repetition (:1i)
27
27
:1i bcd aBxDef n ignorecase, repetition (:1i)
28
+ A :i B Ab y ignorecase in the middle, literals on both sides
28
29
ab [:i cd ] ef abcdef y ignorecase, lexical (:i)
29
30
ab [:i cd ] ef abCdef y ignorecase, lexical (:i)
30
31
ab [:i cd ] ef abcDef y ignorecase, lexical (:i)
You can’t perform that action at this time.
0 commit comments