Christian Brabandt wrote:

> On Mi, 18 Sep 2013, Christ van Willegen wrote:
> 
> > I accidentally searched the following
> > 
> > /\(
> > 
> > This gives me the error message
> > 
> > E54: Unmatched \(
> > E54: Unmatched \(
> > 
> > twice.
> 
> This happens, because your 're' setting is 0. That means, if the 
> backtracking engine fails to compile the regular expression, vim will 
> automatically retry with the old engine. Therefore you get the error for 
> each tried regexp engine.
> 
> I think, this patch prevents this:

The retry with the backtracking engine used to be for when the NFA
engine could not handle the pattern.  This no longer exists, the NFA
only fails when the pattern is invalid or it runs out of memory.

I think we can just drop the retry, it will never work.  Perhaps some
day we'll find a mechanism to use the backtracking when it is expected
to be faster for the specific pattern, thus we don't need to remove the
"0" value of 'regexpengine'.

Hmm, when I do that test44 fails, thus there is something missing in the
NFA engine...  Ah, [[=B=]] doesn't work.  I'll have to fix that first.

-- 
hundred-and-one symptoms of being an internet addict:
231. You sprinkle Carpet Fresh on the rugs and put your vacuum cleaner
     in the front doorway permanently so it always looks like you are
     actually attempting to do something about that mess that has amassed
     since you discovered the Internet.

 /// 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_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/groups/opt_out.

Raspunde prin e-mail lui