On Wednesday, July 30, 2014 6:58:11 AM UTC-5, Ingo Karkat wrote:
> > It's a suprise it works at all. Probably because in the old regex
>
> > engine the "\@<=" part is used only after finding a match for the
>
> > rest.
>
> >
>
The help for /\@<= pretty explicitly says it should work this way, and why:
The part of the pattern after "\@<=" and "\@<!" are checked for a
match first, thus things like "\1" don't work to reference \(\) inside
the preceding atom. It does work the other way around:
Example matches ~
\1\@<=,\([a-z]\+\) ",abc" in "abc,abc"
It's weird but it's too late now. So I agree with Ingo: either the regex engine
must be switched dynamically to use the old engine by default when an undefined
backreference is used, or the new regex engine should support it in the same
order.
--
--
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.