1
0
forked from aniani/vim

Updated runtime files.

This commit is contained in:
Bram Moolenaar
2012-03-28 20:51:51 +02:00
parent 913077c37c
commit 61d35bd020
18 changed files with 315 additions and 198 deletions

View File

@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2012 Feb 24
" Last Change: 2012 Mar 28
" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
@@ -367,7 +367,11 @@ au BufNewFile,BufRead *.h call s:FTheader()
func! s:FTheader()
if match(getline(1, min([line("$"), 200])), '^@\(interface\|end\|class\)') > -1
setf objc
if exists("g:c_syntax_for_h")
setf objc
else
setf objcpp
endif
elseif exists("g:c_syntax_for_h")
setf c
elseif exists("g:ch_syntax_for_h")