diff src/regexp.c @ 5353:2d3fbc68b3a8 v7.4.029

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.
author Bram Moolenaar <bram@vim.org>
date Thu, 19 Sep 2013 17:04:01 +0200
parents b04bdb2c5fce
children ec5d11403c19
line wrap: on
line diff
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -8016,12 +8016,11 @@ vim_regcomp(expr_arg, re_flags)
 	}
 #endif
 	/*
-	 * If NFA engine failed, then revert to the backtracking engine.
-	 * Except when there was a syntax error, which was properly handled by
-	 * NFA engine.
-	 */
+	 * If the NFA engine failed, the backtracking engine won't work either.
+	 *
 	if (regexp_engine == AUTOMATIC_ENGINE)
 	    prog = bt_regengine.regcomp(expr, re_flags);
+	 */
     }
 
     return prog;