Mercurial > vim
diff src/regexp_bt.c @ 26958:d92e0d85923f v8.2.4008
patch 8.2.4008: error messages are spread out
Commit: https://github.com/vim/vim/commit/677658ae49de31fe2e5b1fa6d93fdfab85a4362e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 5 16:09:06 2022 +0000
patch 8.2.4008: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Jan 2022 17:15:05 +0100 |
parents | b34ddbca305c |
children | b31cc7630773 |
line wrap: on
line diff
--- a/src/regexp_bt.c +++ b/src/regexp_bt.c @@ -1782,13 +1782,13 @@ collection: endc = coll_get_char(); if (startc > endc) - EMSG_RET_NULL(_(e_reverse_range)); + EMSG_RET_NULL(_(e_reverse_range_in_character_class)); if (has_mbyte && ((*mb_char2len)(startc) > 1 || (*mb_char2len)(endc) > 1)) { // Limit to a range of 256 chars. if (endc > startc + 256) - EMSG_RET_NULL(_(e_large_class)); + EMSG_RET_NULL(_(e_range_too_large_in_character_class)); while (++startc <= endc) regmbc(startc); } @@ -2008,7 +2008,8 @@ collection: break; } else if (reg_strict) - EMSG2_RET_NULL(_(e_missingbracket), reg_magic > MAGIC_OFF); + EMSG2_RET_NULL(_(e_missing_rsb_after_str_lsb), + reg_magic > MAGIC_OFF); } // FALLTHROUGH