summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-09-19 17:04:01 +0200
committerBram Moolenaar <Bram@vim.org>2013-09-19 17:04:01 +0200
commit917789fdf702b18edd9788adf5a60123b9a31ce8 (patch)
tree872d862dc9deebb676cfb5a1338e2fbfc1b0980e /src/regexp.c
parente6a2fa65732eb068b4d10f65e0a3f7353d3dffdc (diff)
downloadvim-917789fdf702b18edd9788adf5a60123b9a31ce8.zip
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.
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/regexp.c b/src/regexp.c
index df884e25b..075374d16 100644
--- 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;