On Mo, 19 Mär 2018, Dominique Pellé wrote:
> I see that your patch adds \%#=1 at the beginning of
> vimNotation's regexp and adds \%#=0 at the end of it,
> 
> According to  :help NFA  the \%#=0  should be prepended
> to the pattern.  So why add \%#=0 at the end?
> 
> In fact adding \%#=0 at the end seems to break the regexp.
> I see things like <F2> which should match vimNotation no
> longer match it.
> 
> But at least I confirm that adding \%#=1 at the beginning
> of vimNotation  (without \%#=0 at the end) does indeed
> help to make the regexp faster.

The idea was to switch back to the automatic engine. I wasn't sure if 
switching the regexp engine would affect other patterns as well, so I 
thought, switching back to the old engine would be the best compromise.

If that breaks, perhaps it is best to drop the final \%#=0 at the end.

Best,
Christian 
-- 
Debian Tipp #3: »apt-cache search <Begriffe>« sucht nach den Begriffen in den
Beschreibungen aller verfügbaren Pakete.

-- 
-- 
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.

Raspunde prin e-mail lui