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:
@@ -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
|
||||
|
Reference in New Issue
Block a user