Use default includes only with the C-like checkers.

This commit is contained in:
LCD 47 2013-06-21 11:42:14 +03:00
parent 5e196e67c5
commit f9c30c3215

View File

@ -152,7 +152,9 @@ endfunction
function! s:GetIncludeDirs(filetype) function! s:GetIncludeDirs(filetype)
let include_dirs = [] let include_dirs = []
if !exists('g:syntastic_'.a:filetype.'_no_default_include_dirs') || !g:syntastic_{a:filetype}_no_default_include_dirs if a:filetype =~# '\v^%(c|cpp|d|objc|objcpp)$' &&
\ (!exists('g:syntastic_'.a:filetype.'_no_default_include_dirs') ||
\ !g:syntastic_{a:filetype}_no_default_include_dirs)
let include_dirs = copy(s:default_includes) let include_dirs = copy(s:default_includes)
endif endif