72235Re: NFA-regexp problem in Vim 7.4a.24
- Jul 16, 2013On Tue, Jul 16, 2013 at 8:41 PM, glts <676c7473@...> wrote:
> On Tue, Jul 16, 2013 at 1:38 PM, Ingo Karkat <swdev@...> wrote:I bisected the reduced example.
>> I've found a discrepancy in pattern matching while re-running my
>> plugins' test suites. With the new NFA-regexp, a (rather complex,
>> generated, used for searching insert mode completion matches) pattern
>> does not match any more:
>> :echo '__mul__sub__und__everywhere__' =~#
>> To reproduce, use the attached script:
>> vim -N -u NONE -S bad-re.vim
>> This is with a huge build of Vim 7.4a.24, running in an Ubuntu 13.04
>> x64 VM. See attached bad-re.version for more info.
>> I last ran the test suite successfully with Vim 7.3.1280, so the bug
>> must have been introduced since then.
> I reduced Ingo's report to the following minimal example.
> function! Test(re)
> return 'mx__xe' =~ '\%#=' . a:re . 'm\k\+_\@=\%(_\@!\k\)\@<=\k\+e'
> for n in [0, 1]
> echo Test(n)
> I can reproduce on current Mercurial tip. Hope it helps.
The first bad revision is:
user: Bram Moolenaar <bram@...>
date: Sun Jun 09 16:24:45 2013 +0200
summary: updated for version 7.3.1153
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 vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>