Seems need to avoid following by zero-width.

diff -r aeafe78fc869 src/regexp_nfa.c
--- a/src/regexp_nfa.c  Fri Aug 22 13:13:28 2014 +0200
+++ b/src/regexp_nfa.c  Wed Aug 27 15:35:21 2014 +0900
@@ -4408,8 +4408,10 @@
 
        case NFA_SPLIT:
            /* order matters here */
-           subs = addstate(l, state->out, subs, pim, off);
-           subs = addstate(l, state->out1, subs, pim, off);
+           if (state->out->c != NFA_ZSTART && state->out->c != NFA_ZEND) {
+               subs = addstate(l, state->out, subs, pim, off);
+               subs = addstate(l, state->out1, subs, pim, off);
+           }
            break;
 
        case NFA_EMPTY:

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui