updated for version 7.0228

This commit is contained in:
Bram Moolenaar
2006-03-18 21:40:56 +00:00
parent 658b74a736
commit 97b2ad3542
23 changed files with 268 additions and 149 deletions

View File

@ -1,6 +1,6 @@
" Vim syntax support file
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2005 Feb 08
" Last Change: 2006 Mar 18
" This file sets up for syntax highlighting.
" It is loaded from "syntax.vim" and "manual.vim".
@ -49,8 +49,11 @@ fun! s:SynSet()
endif
if s != ""
" Load the syntax file(s)
exe "runtime! syntax/" . s . ".vim syntax/" . s . "/*.vim"
" Load the syntax file(s). When there are several, separated by dots,
" load each in sequence.
for name in split(s, '\.')
exe "runtime! syntax/" . name . ".vim syntax/" . name . "/*.vim"
endfor
endif
endfun
@ -59,15 +62,9 @@ endfun
au Syntax cpp,c,idl
\ if (exists('b:load_doxygen_syntax') && b:load_doxygen_syntax)
\ || (exists('g:load_doxygen_syntax') && g:load_doxygen_syntax)
\ | runtime syntax/doxygen.vim
\ | runtime! syntax/doxygen.vim
\ | endif
au Syntax *doxygen
\ if exists("b:current_syntax") | finish | endif
\ | let syn = substitute(expand("<amatch>"), 'doxygen$', '', '')
\ | if syn != '' | exe 'runtime syntax/'.syn.'.vim' | endif
\ | if b:current_syntax !~ 'doxygen' | runtime syntax/doxygen.vim | endif
" Source the user-specified syntax highlighting file
if exists("mysyntaxfile") && filereadable(expand(mysyntaxfile))