1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2013-11-21 16:03:40 +01:00
parent cafaa8a950
commit 272fb58236
4 changed files with 7 additions and 1 deletions

View File

@@ -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