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/syntax.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/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 840cd60f13..d237972e40 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -59,6 +59,12 @@ static bool did_syntax_onoff = false; #define SPO_COUNT 7 static const char e_illegal_arg[] = N_("E390: Illegal argument: %s"); +static const char e_contains_argument_not_accepted_here[] + = N_("E395: Contains argument not accepted here"); +static const char e_invalid_cchar_value[] + = N_("E844: Invalid cchar value"); +static const char e_trailing_char_after_rsb_str_str[] + = N_("E890: Trailing char after ']': %s]%s"); // The patterns that are being searched for are stored in a syn_pattern. // A match item consists of one pattern. @@ -3874,7 +3880,7 @@ static char *get_syn_options(char *arg, syn_opt_arg_T *opt, int *conceal_char, i if (flagtab[fidx].argtype == 1) { if (!opt->has_cont_list) { - emsg(_("E395: contains argument not accepted here")); + emsg(_(e_contains_argument_not_accepted_here)); return NULL; } if (get_id_list(&arg, 8, &opt->cont_list, skip) == FAIL) { @@ -3893,7 +3899,7 @@ static char *get_syn_options(char *arg, syn_opt_arg_T *opt, int *conceal_char, i *conceal_char = utf_ptr2char(arg + 6); arg += utfc_ptr2len(arg + 6) - 1; if (!vim_isprintc_strict(*conceal_char)) { - emsg(_("E844: invalid cchar value")); + emsg(_(e_invalid_cchar_value)); return NULL; } arg = skipwhite(arg + 7); @@ -4111,8 +4117,7 @@ static void syn_cmd_keyword(exarg_T *eap, int syncing) } if (p[1] == ']') { if (p[2] != NUL) { - semsg(_("E890: trailing char after ']': %s]%s"), - kw, &p[2]); + semsg(_(e_trailing_char_after_rsb_str_str), kw, &p[2]); goto error; } kw = p + 1; |