comparison src/highlight.c @ 26952:b34ddbca305c v8.2.4005

patch 8.2.4005: error messages are spread out Commit: https://github.com/vim/vim/commit/a6f7929e62c19a6a2418a016b4c59b83eb1887ac Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 4 21:30:47 2022 +0000 patch 8.2.4005: 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 Tue, 04 Jan 2022 22:45:04 +0100
parents 3631d2deb36c
children 85866e069c24
comparison
equal deleted inserted replaced
26951:c3fbe78b6109 26952:b34ddbca305c
445 if (get_var_value((char_u *)"g:syntax_on") != NULL) 445 if (get_var_value((char_u *)"g:syntax_on") != NULL)
446 { 446 {
447 static int recursive = 0; 447 static int recursive = 0;
448 448
449 if (recursive >= 5) 449 if (recursive >= 5)
450 emsg(_("E679: recursive loop loading syncolor.vim")); 450 emsg(_(e_recursive_loop_loading_syncolor_vim));
451 else 451 else
452 { 452 {
453 ++recursive; 453 ++recursive;
454 (void)source_runtime((char_u *)"syntax/syncolor.vim", DIP_ALL); 454 (void)source_runtime((char_u *)"syntax/syncolor.vim", DIP_ALL);
455 --recursive; 455 --recursive;
3441 // Check that the name is ASCII letters, digits and underscore. 3441 // Check that the name is ASCII letters, digits and underscore.
3442 for (p = name; *p != NUL; ++p) 3442 for (p = name; *p != NUL; ++p)
3443 { 3443 {
3444 if (!vim_isprintc(*p)) 3444 if (!vim_isprintc(*p))
3445 { 3445 {
3446 emsg(_("E669: Unprintable character in group name")); 3446 emsg(_(e_unprintable_character_in_group_name));
3447 vim_free(name); 3447 vim_free(name);
3448 return 0; 3448 return 0;
3449 } 3449 }
3450 else if (!ASCII_ISALNUM(*p) && *p != '_') 3450 else if (!ASCII_ISALNUM(*p) && *p != '_')
3451 { 3451 {