Add objc syntax highlighting, closes #77

This commit is contained in:
Adam Stankiewicz
2015-12-06 11:58:09 +01:00
parent 08ea94e011
commit b4b054ebf5
5 changed files with 132 additions and 0 deletions

10
ftplugin/objc.vim Normal file
View File

@@ -0,0 +1,10 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1
" Use C++ style comment strings with commentary.vim
setl commentstring=//%s
" Search for include files inside frameworks (used for gf etc.)
setl includeexpr=substitute(v:fname,'\\([^/]\\+\\)/\\(.\\+\\)','/System/Library/Frameworks/\\1.framework/Headers/\\2','')
endif