Mercurial > vim
diff src/regexp_nfa.c @ 25320:1e6da8364a02 v8.2.3197
patch 8.2.3197: error messages are spread out
Commit: https://github.com/vim/vim/commit/d8e44476d84b5f0cc8c4de080a47a3a9af547028
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 21 22:20:33 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Jul 2021 22:30:05 +0200 |
parents | 078edc1821bf |
children | 1c999a6e9d92 |
line wrap: on
line diff
--- 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")); }