On Sun, Nov 12, 2017 at 6:32 PM, Bram Moolenaar <[email protected]> wrote:
[...]
> The empty pattern match is very useful for a longer pattern:
> \(foo\|\)bar
hm, what about
\%(foo\)\=bar
i.e. zero or one times "foo" followed by "bar" ? And to make the "foo"
part meaningful, it might be "as a full word", i.e.
\<\%(foo\)\=bar\>
>
> Yeah, there are other ways to do this, but we should not enforce that.
>
> For 'hlsearch' matching an empty string is not useful, since everything
> will be highlighted. We can make that happen.
I agree that highlighting everything isn't useful; this will be a nice
improvement.
Best regards,
Tony.
--
--
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.