Mercurial > vim
comparison src/syntax.c @ 24:8ff7fd162d3c v7.0016
updated for version 7.0016
author | vimboss |
---|---|
date | Mon, 13 Sep 2004 20:26:32 +0000 |
parents | 3ba373b54370 |
children | 404aac550f35 |
comparison
equal
deleted
inserted
replaced
23:3f44e9abe4ec | 24:8ff7fd162d3c |
---|---|
6014 #ifdef FEAT_SYN_HL | 6014 #ifdef FEAT_SYN_HL |
6015 /* | 6015 /* |
6016 * If syntax highlighting is enabled load the highlighting for it. | 6016 * If syntax highlighting is enabled load the highlighting for it. |
6017 */ | 6017 */ |
6018 if (get_var_value((char_u *)"g:syntax_on") != NULL) | 6018 if (get_var_value((char_u *)"g:syntax_on") != NULL) |
6019 (void)cmd_runtime((char_u *)"syntax/syncolor.vim", TRUE); | 6019 { |
6020 static int recursive = 0; | |
6021 | |
6022 if (recursive >= 5) | |
6023 EMSG(_("E679: recursive loop loading syncolor.vim")); | |
6024 else | |
6025 { | |
6026 ++recursive; | |
6027 (void)cmd_runtime((char_u *)"syntax/syncolor.vim", TRUE); | |
6028 --recursive; | |
6029 } | |
6030 } | |
6020 #endif | 6031 #endif |
6021 } | 6032 } |
6022 | 6033 |
6023 /* | 6034 /* |
6024 * Load color file "name". | 6035 * Load color file "name". |