summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-09-09 17:18:49 +0200
committerBram Moolenaar <Bram@vim.org>2014-09-09 17:18:49 +0200
commitfb031407304b82b49f6f367bfba31f602837fc49 (patch)
tree6e1803ed2f3399b5de86ae3aeef54af32b250992 /src/regexp_nfa.c
parent371932a7754453b5a3adbd41959056fc9a45a9fd (diff)
downloadvim-git-fb031407304b82b49f6f367bfba31f602837fc49.tar.gz
updated for version 7.4.437v7.4.437
Problem: New and old regexp engine are not consistent. Solution: Also give an error for "\ze*" for the old regexp engine.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 4ccb05a2b..6531d45fd 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -291,7 +291,6 @@ static int nfa_regpiece __ARGS((void));
static int nfa_regconcat __ARGS((void));
static int nfa_regbranch __ARGS((void));
static int nfa_reg __ARGS((int paren));
-static int re_mult_next __ARGS((char *what));
#ifdef DEBUG
static void nfa_set_code __ARGS((int c));
static void nfa_postfix_dump __ARGS((char_u *expr, int retval));
@@ -2281,18 +2280,6 @@ nfa_reg(paren)
return OK;
}
-/*
- * Used in a place where no * or \+ can follow.
- */
- static int
-re_mult_next(what)
- char *what;
-{
- if (re_multi_type(peekchr()) == MULTI_MULT)
- EMSG2_RET_FAIL(_("E888: (NFA regexp) cannot repeat %s"), what);
- return OK;
-}
-
#ifdef DEBUG
static char_u code[50];