1
0
forked from aniani/vim

patch 8.2.3197: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move a few more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2021-07-21 22:20:33 +02:00
parent 05bd9785fd
commit d8e44476d8
15 changed files with 61 additions and 35 deletions

View File

@@ -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"));
}