Ingo Karkat wrote:

> Hello Vim developers,
> 
> there's another discrepancy between the regular expression engines:
> 
> for n in [1,2] | echo matchlist("foo", '\%#=' . n .
> '^\(.*\%<3v\)\(o\)')[1:2] | endfor
> for n in [1,2] | echo matchlist("foo", '\%#=' . n .
> '^\(.*\%<3v\)\(.*\)')[1:2] | endfor
> 
> This affects matching with \%<v (also with \%<c) when it is followed by
> a .* expression.
> 
> To reproduce, use above scriptlet or the identical attached script:
> 
> vim -N -u NONE -S bad-re4.vim
> ['f', 'o']
> ['f', 'o']
> ['f', 'oo']
> ['', 'foo']  " <- Wrong result with re=2 and following .* pattern
> 
> This is with a huge build of Vim 7.4.267, running in an Ubuntu 13.04 x64
> VM, and with a self-compiled Windows/x64 build.

Thanks for the reproducible example.  I'll have to dig into these NFA
problems some day, it appears nobody else is fixing these problems.

-- 
hundred-and-one symptoms of being an internet addict:
141. You'd rather go to http://www.weather.com/ than look out your window.

 /// 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.

Raspunde prin e-mail lui