0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.029

Problem:    An error in a pattern is reported twice.
Solution:   Remove the retry with the backtracking engine, it won't work.
This commit is contained in:
Bram Moolenaar
2013-09-19 17:04:01 +02:00
parent e6a2fa6573
commit 917789fdf7
2 changed files with 5 additions and 4 deletions

View File

@@ -8016,12 +8016,11 @@ vim_regcomp(expr_arg, re_flags)
} }
#endif #endif
/* /*
* If NFA engine failed, then revert to the backtracking engine. * If the NFA engine failed, the backtracking engine won't work either.
* Except when there was a syntax error, which was properly handled by *
* NFA engine.
*/
if (regexp_engine == AUTOMATIC_ENGINE) if (regexp_engine == AUTOMATIC_ENGINE)
prog = bt_regengine.regcomp(expr, re_flags); prog = bt_regengine.regcomp(expr, re_flags);
*/
} }
return prog; return prog;

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
29,
/**/ /**/
28, 28,
/**/ /**/