Brett Stahlman wrote:

> Not sure whether this is the same issue or not, but it seems to be
> similar, at least, so I'm including it on this thread. If nothing
> else, it can serve as a simple test for any eventual code fix...
> 
> --Old Engine--
> echo matchlist('ababa', '\%#=1^\(a\%(ba\)*\(b\|$\)\)\?\(.*\)', '')
> ['ababa', 'ababa', '', '', '', '', '', '', '', '']
> 
> --New Engine--
> echo matchlist('ababa', '\%#=2^\(a\%(ba\)*\(b\|$\)\)\?\(.*\)', '')
> ['ababa', 'abab', 'b', 'a', '', '', '', '', '', '']
> 
> Note how the new engine fails to match the second "ba" in the first
> capture, apparently because the later...
> \(b\|$\)
> ...takes the b and won't give it back.

It's probably a different problem, since this pattern doesn't use \@>.

-- 
    f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng

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

Reply via email to