diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 07:14:39 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 09:20:30 +0800 |
commit | 88cfb49bee3c9102082c7010acb92244e4ad1348 (patch) | |
tree | 14c4ab0d2b319f83c42d940b00aebd42e8d971ac /src/nvim/regexp_bt.c | |
parent | b8d5586d5b0d1e2d25533ee398d16bb2e8412820 (diff) | |
download | rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.gz rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.bz2 rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.zip |
vim-patch:8.2.4890: inconsistent capitalization in error messages
Problem: Inconsistent capitalization in error messages.
Solution: Make capitalization consistent. (Doug Kearns)
https://github.com/vim/vim/commit/cf030578b26460643dca4a40e7f2e3bc19c749aa
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r-- | src/nvim/regexp_bt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c index 08b97b60ba..0e1ea9d3b0 100644 --- a/src/nvim/regexp_bt.c +++ b/src/nvim/regexp_bt.c @@ -1748,7 +1748,7 @@ static uint8_t *regatom(int *flagp) case Magic('U'): p = (uint8_t *)vim_strchr((char *)classchars, no_Magic(c)); if (p == NULL) { - EMSG_RET_NULL(_("E63: invalid use of \\_")); + EMSG_RET_NULL(_(e_invalid_use_of_underscore)); } // When '.' is followed by a composing char ignore the dot, so that // the composing char is matched here. @@ -2531,7 +2531,7 @@ static uint8_t *regpiece(int *flagp) } } if (lop == END) { - EMSG2_RET_NULL(_("E59: invalid character after %s@"), + EMSG2_RET_NULL(_(e_invalid_character_after_str_at), reg_magic == MAGIC_ALL); } // Look behind must match with behind_pos. @@ -3436,7 +3436,7 @@ static regitem_T *regstack_push(regstate_T state, uint8_t *scan) regitem_T *rp; if ((long)((unsigned)regstack.ga_len >> 10) >= p_mmp) { - emsg(_(e_maxmempat)); + emsg(_(e_pattern_uses_more_memory_than_maxmempattern)); return NULL; } ga_grow(®stack, sizeof(regitem_T)); @@ -4402,7 +4402,7 @@ static bool regmatch(uint8_t *scan, proftime_T *tm, int *timed_out) // follows. The code is below. Parameters are stored in // a regstar_T on the regstack. if ((long)((unsigned)regstack.ga_len >> 10) >= p_mmp) { - emsg(_(e_maxmempat)); + emsg(_(e_pattern_uses_more_memory_than_maxmempattern)); status = RA_FAIL; } else { ga_grow(®stack, sizeof(regstar_T)); @@ -4439,7 +4439,7 @@ static bool regmatch(uint8_t *scan, proftime_T *tm, int *timed_out) case NOBEHIND: // Need a bit of room to store extra positions. if ((long)((unsigned)regstack.ga_len >> 10) >= p_mmp) { - emsg(_(e_maxmempat)); + emsg(_(e_pattern_uses_more_memory_than_maxmempattern)); status = RA_FAIL; } else { ga_grow(®stack, sizeof(regbehind_T)); |