File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1636,4 +1636,8 @@ class NQP::RegexActions is QRegex::P6Regex::Actions {
1636
1636
method store_regex_nfa ($ code_obj , $ block , $ nfa ) {
1637
1637
$ code_obj . SET_NFA($ nfa . save);
1638
1638
}
1639
+
1640
+ method store_regex_caps ($ code_obj , $ block , % caps ) {
1641
+ $ code_obj . SET_CAPS(% caps );
1642
+ }
1639
1643
}
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ role NQPCursorRole is export {
28
28
my $ name ;
29
29
30
30
if ! nqp ::isnull($ ! regexsub ) && $ ! regexsub {
31
- % caplist := $ ! regexsub . nqpattr(' caps' );
31
+ % caplist := nqp ::ifnull(
32
+ nqp :: can ($ ! regexsub , ' CAPS' ) ?? $ ! regexsub . CAPS() !! nqp ::null(),
33
+ $ ! regexsub . nqpattr(' caps' ));
32
34
if ! nqp ::isnull(% caplist ) && % caplist {
33
35
$ iter := nqp :: iterator (% caplist );
34
36
while $ iter {
You can’t perform that action at this time.
0 commit comments