summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-03-28 20:51:51 +0200
committerBram Moolenaar <Bram@vim.org>2012-03-28 20:51:51 +0200
commit61d35bd0201074a70a10e9a2ea5d6a251abf1b20 (patch)
tree3eeefe627f7f1c11cba708301e65ba4c808e5a17 /runtime/filetype.vim
parent913077c37c0ba2f70e6b06e9b46d176e8b9e7956 (diff)
Updated runtime files.
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index b9773b7148..83d07bc102 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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")