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.

-- regards, ingo

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: bad-re4.vim
Description: application/octetstream

Raspunde prin e-mail lui