Skip to content

Commit

Permalink
Make sure we terminate LTM on imperative pastnode cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Nov 18, 2011
1 parent f5ad380 commit 5523be6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/QRegex/NFA.nqp
Expand Up @@ -161,7 +161,9 @@ class QRegex::NFA {
}

method pastnode($node, $from, $to) {
self.addedge($from, $to, $EDGE_EPSILON, 0);
$node.subtype eq 'zerowidth' || $node.subtype eq 'declarative' ??
self.addedge($from, $to, $EDGE_EPSILON, 0) !!
self.fate($node, $from, $to);
}

method subcapture($node, $from, $to) {
Expand Down

0 comments on commit 5523be6

Please sign in to comment.