Re: [BUG] New regexp engine bug: capturing group with @ voids all preceding capturing groups contents

2013-08-30 Fir de Conversatie Bram Moolenaar
ZyX wrote: Try the following code: echo matchlist('abc', '\%#=1\v(\_.{-})\C(%(\V\\\v)*)@(\V%\v|%$)') echo matchlist('abc', '\%#=2\v(\_.{-})\C(%(\V\\\v)*)@(\V%\v|%$)') . You will see that output differs: first version (with old engine) contains “abc” in first capturing group

[BUG] New regexp engine bug: capturing group with @ voids all preceding capturing groups contents

2013-08-29 Fir de Conversatie ZyX
Try the following code: echo matchlist('abc', '\%#=1\v(\_.{-})\C(%(\V\\\v)*)@(\V%\v|%$)') echo matchlist('abc', '\%#=2\v(\_.{-})\C(%(\V\\\v)*)@(\V%\v|%$)') . You will see that output differs: first version (with old engine) contains “abc” in first capturing group and full text, second

new regexp engine bug?

2013-06-13 Fir de Conversatie SungHyun Nam
Hello, $ cat test a b c $ vim -u NONE --noplugin test /a\n\(^b$\n\)\{1,2}c The search failed with re=0. If I set 're=1', search works. Thanks, namsh $ LANG= vim --version | head -2 VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 13 2013 09:51:39) Included patches: 1-1182 -- -- You

Re: new regexp engine bug?

2013-06-13 Fir de Conversatie John Little
On Thursday, June 13, 2013 6:31:42 PM UTC+12, SungHyun Nam wrote: /a\n\(^b$\n\)\{1,2}c I see this, too; it can be simplified to /a\n^b$ for me to see a difference. The ^ does not match with re=0, though the help says it should after a \n. Regards, John Little -- -- You received this

Re: new regexp engine bug?

2013-06-13 Fir de Conversatie Bram Moolenaar
SungHyun Nam wrote: $ cat test a b c $ vim -u NONE --noplugin test /a\n\(^b$\n\)\{1,2}c The search failed with re=0. If I set 're=1', search works. Thanks for reporting. It's easy to reproduce. Strange that this wasn't caught before. Looks like the actual problem is matching ^