Mercurial > vim
diff src/regexp_nfa.c @ 5502:5ad60cd88339 v7.4.100
updated for version 7.4.100
Problem: NFA regexp doesn't handle backreference correctly. (Ryuichi
Hayashida, Urtica Dioica)
Solution: Always add NFA_SKIP, also when it already exists at the start
position.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 21 Nov 2013 16:03:40 +0100 |
parents | e7a2f217a385 |
children | dd7d1a86b311 |
line wrap: on
line diff
--- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -4278,7 +4278,7 @@ addstate(l, state, subs_arg, pim, off) * endless loop for "\(\)*" */ default: - if (state->lastlist[nfa_ll_index] == l->id) + if (state->lastlist[nfa_ll_index] == l->id && state->c != NFA_SKIP) { /* This state is already in the list, don't add it again, * unless it is an MOPEN that is used for a backreference or