tamarama: check for match halt in _Q2 as well

This commit is contained in:
Justin Viiret 2016-08-15 09:58:06 +10:00 committed by Matthew Barr
parent e6c05d5a55
commit 87e32c9037

View File

@ -431,6 +431,9 @@ char nfaExecTamarama0_Q2(const struct NFA *n,
rv = nfaQueueExec2_raw(q1.nfa, &q1, end); rv = nfaQueueExec2_raw(q1.nfa, &q1, end);
q->report_current = q1.report_current; q->report_current = q1.report_current;
copy = 1; copy = 1;
if (can_stop_matching(q->scratch)) {
break;
}
} }
if (copy) { if (copy) {
copyBack(t, q, &q1); copyBack(t, q, &q1);