summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-21 22:20:33 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-21 22:20:33 +0200
commitd8e44476d84b5f0cc8c4de080a47a3a9af547028 (patch)
treec45296f474fb015dc94cedc81238377efc8e55b0 /src/regexp_nfa.c
parent05bd9785fd0fd0102ab64554307bff0ec0ae34c1 (diff)
downloadvim-git-d8e44476d84b5f0cc8c4de080a47a3a9af547028.tar.gz
patch 8.2.3197: error messages are spread outv8.2.3197
Problem: Error messages are spread out. Solution: Move a few more error messages to errors.h.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index dac312528..9757d7c47 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -2561,14 +2561,15 @@ nfa_reg(
if (paren != REG_NOPAREN && getchr() != Magic(')'))
{
if (paren == REG_NPAREN)
- EMSG2_RET_FAIL(_(e_unmatchedpp), reg_magic == MAGIC_ALL);
+ EMSG2_RET_FAIL(_(e_unmatched_str_percent_open),
+ reg_magic == MAGIC_ALL);
else
- EMSG2_RET_FAIL(_(e_unmatchedp), reg_magic == MAGIC_ALL);
+ EMSG2_RET_FAIL(_(e_unmatched_str_open), reg_magic == MAGIC_ALL);
}
else if (paren == REG_NOPAREN && peekchr() != NUL)
{
if (peekchr() == Magic(')'))
- EMSG2_RET_FAIL(_(e_unmatchedpar), reg_magic == MAGIC_ALL);
+ EMSG2_RET_FAIL(_(e_unmatched_str_close), reg_magic == MAGIC_ALL);
else
EMSG_RET_FAIL(_("E873: (NFA regexp) proper termination error"));
}