diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-21 16:03:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-21 16:03:40 +0100 |
commit | 272fb5823627e2e088b8f39ea516fc8a9341572e (patch) | |
tree | 15071eae29d3505e7be7abaf33689bbec774c941 /src/regexp_nfa.c | |
parent | cafaa8a9502f64d5c23e51c1f89c5b322deb22fe (diff) | |
download | vim-git-272fb5823627e2e088b8f39ea516fc8a9341572e.tar.gz |
updated for version 7.4.100v7.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.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r-- | src/regexp_nfa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 0c6ff0b63..cf7694bb0 100644 --- 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 |