Mercurial > vim
comparison src/syntax.c @ 26962:85866e069c24 v8.2.4010
patch 8.2.4010: error messages are spread out
Commit: https://github.com/vim/vim/commit/9d00e4a8146862c17ed429dc6b1b43349acb2b5f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 5 17:49:15 2022 +0000
patch 8.2.4010: 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 19:00:06 +0100 |
parents | d92e0d85923f |
children | ac75c145f0a9 |
comparison
equal
deleted
inserted
replaced
26961:33c0467b3c52 | 26962:85866e069c24 |
---|---|
4633 #endif | 4633 #endif |
4634 } | 4634 } |
4635 #ifdef FEAT_CONCEAL | 4635 #ifdef FEAT_CONCEAL |
4636 if (!vim_isprintc_strict(*conceal_char)) | 4636 if (!vim_isprintc_strict(*conceal_char)) |
4637 { | 4637 { |
4638 emsg(_("E844: invalid cchar value")); | 4638 emsg(_(e_invalid_cchar_value)); |
4639 return NULL; | 4639 return NULL; |
4640 } | 4640 } |
4641 #endif | 4641 #endif |
4642 arg = skipwhite(arg + 7); | 4642 arg = skipwhite(arg + 7); |
4643 } | 4643 } |
4783 * Save and restore the existing top-level grouplist id and ":syn | 4783 * Save and restore the existing top-level grouplist id and ":syn |
4784 * include" tag around the actual inclusion. | 4784 * include" tag around the actual inclusion. |
4785 */ | 4785 */ |
4786 if (running_syn_inc_tag >= MAX_SYN_INC_TAG) | 4786 if (running_syn_inc_tag >= MAX_SYN_INC_TAG) |
4787 { | 4787 { |
4788 emsg(_("E847: Too many syntax includes")); | 4788 emsg(_(e_too_many_syntax_includes)); |
4789 return; | 4789 return; |
4790 } | 4790 } |
4791 prev_syn_inc_tag = current_syn_inc_tag; | 4791 prev_syn_inc_tag = current_syn_inc_tag; |
4792 current_syn_inc_tag = ++running_syn_inc_tag; | 4792 current_syn_inc_tag = ++running_syn_inc_tag; |
4793 prev_toplvl_grp = curwin->w_s->b_syn_topgrp; | 4793 prev_toplvl_grp = curwin->w_s->b_syn_topgrp; |
5520 } | 5520 } |
5521 | 5521 |
5522 len = curwin->w_s->b_syn_clusters.ga_len; | 5522 len = curwin->w_s->b_syn_clusters.ga_len; |
5523 if (len >= MAX_CLUSTER_ID) | 5523 if (len >= MAX_CLUSTER_ID) |
5524 { | 5524 { |
5525 emsg(_("E848: Too many syntax clusters")); | 5525 emsg(_(e_too_many_syntax_clusters)); |
5526 vim_free(name); | 5526 vim_free(name); |
5527 return 0; | 5527 return 0; |
5528 } | 5528 } |
5529 | 5529 |
5530 /* | 5530 /* |