diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-09-13 20:26:32 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-09-13 20:26:32 +0000 |
commit | c0197e2815208269fa9ba2fba95230138ec39ceb (patch) | |
tree | 21db1c3acd16fb095a8e34ce2e15ed87275cbd79 /src/syntax.c | |
parent | 15d0a8c77dad867b69822e2fd8f9f6bbcf765c48 (diff) | |
download | vim-git-c0197e2815208269fa9ba2fba95230138ec39ceb.tar.gz |
updated for version 7.0016v7.0016
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c index e5d1b185f..e99f09743 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -6016,7 +6016,18 @@ init_highlight(both, reset) * If syntax highlighting is enabled load the highlighting for it. */ if (get_var_value((char_u *)"g:syntax_on") != NULL) - (void)cmd_runtime((char_u *)"syntax/syncolor.vim", TRUE); + { + static int recursive = 0; + + if (recursive >= 5) + EMSG(_("E679: recursive loop loading syncolor.vim")); + else + { + ++recursive; + (void)cmd_runtime((char_u *)"syntax/syncolor.vim", TRUE); + --recursive; + } + } #endif } |