Skip to content

Commit deb59ee

Browse files
committed
Do store the NFA of standalone regexes.
Turns out that the current way we do gen_op in Rakudo needs that. (Yes, this will change soon, but this is the easiest way for now.)
1 parent e6b9101 commit deb59ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QRegex/P6Regex/Actions.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,9 +675,9 @@ class QRegex::P6Regex::Actions is HLL::Actions {
675675
$code_obj.SET_CAPS(%caps);
676676
}
677677

678-
# Override this to store the overall NFA for a regex. (Standalone mode doesn't need
679-
# it, as it only supports executing individual regexes).
678+
# Stores the NFA for the regex overall.
680679
method store_regex_nfa($code_obj, $block, $nfa) {
680+
$code_obj.SET_NFA($nfa.save);
681681
}
682682

683683
# Stores the NFA for a regex alternation.

0 commit comments

Comments
 (0)