summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-05 16:09:06 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-05 16:09:06 +0000
commit677658ae49de31fe2e5b1fa6d93fdfab85a4362e (patch)
treef5f0bbdda081ce1dad3bcaf7f4e6cf3281774cac /src/regexp.c
parent8e7d9db32b53ca2b1cb7570d2042860bcd1e943f (diff)
downloadvim-git-677658ae49de31fe2e5b1fa6d93fdfab85a4362e.tar.gz
patch 8.2.4008: error messages are spread outv8.2.4008
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/regexp.c b/src/regexp.c
index 40b21d3f4..2dad2b812 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -71,11 +71,6 @@ toggle_Magic(int x)
#define MAX_LIMIT (32767L << 16L)
-static char_u e_missingbracket[] = N_("E769: Missing ] after %s[");
-static char_u e_reverse_range[] = N_("E944: Reverse range in character class");
-static char_u e_large_class[] = N_("E945: Range too large in character class");
-static char_u e_recursive[] = N_("E956: Cannot use pattern recursively");
-
#define NOT_MULTI 0
#define MULTI_ONE 1
#define MULTI_MULT 2
@@ -2779,7 +2774,7 @@ vim_regexec_string(
// Cannot use the same prog recursively, it contains state.
if (rmp->regprog->re_in_use)
{
- emsg(_(e_recursive));
+ emsg(_(e_cannot_use_pattern_recursively));
return FALSE;
}
rmp->regprog->re_in_use = TRUE;
@@ -2900,7 +2895,7 @@ vim_regexec_multi(
// Cannot use the same prog recursively, it contains state.
if (rmp->regprog->re_in_use)
{
- emsg(_(e_recursive));
+ emsg(_(e_cannot_use_pattern_recursively));
return FALSE;
}
rmp->regprog->re_in_use = TRUE;