Yasuhiro Matsumoto wrote:
> 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:
Thanks! I'll check it out.
--
hundred-and-one symptoms of being an internet addict:
79. All of your most erotic dreams have a scrollbar at the right side.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.