diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-05 16:09:06 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-05 16:09:06 +0000 |
commit | 677658ae49de31fe2e5b1fa6d93fdfab85a4362e (patch) | |
tree | f5f0bbdda081ce1dad3bcaf7f4e6cf3281774cac /src/regexp_bt.c | |
parent | 8e7d9db32b53ca2b1cb7570d2042860bcd1e943f (diff) | |
download | vim-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_bt.c')
-rw-r--r-- | src/regexp_bt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regexp_bt.c b/src/regexp_bt.c index b39434291..9286d911a 100644 --- 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 |