check all subfiletypes if &ft = "foo.bar"
This commit is contained in:
parent
00f8718f6e
commit
23a3edb4ed
@ -121,7 +121,8 @@ endfunction
|
|||||||
function! s:CacheErrors()
|
function! s:CacheErrors()
|
||||||
let b:syntastic_qflist = []
|
let b:syntastic_qflist = []
|
||||||
|
|
||||||
if exists("*SyntaxCheckers_". &ft ."_GetQFList") && filereadable(expand("%"))
|
for ft in split(&ft, '\.')
|
||||||
|
if exists("*SyntaxCheckers_". ft ."_GetQFList") && filereadable(expand("%"))
|
||||||
let oldqfixlist = getqflist()
|
let oldqfixlist = getqflist()
|
||||||
let old_makeprg = &makeprg
|
let old_makeprg = &makeprg
|
||||||
let old_shellpipe = &shellpipe
|
let old_shellpipe = &shellpipe
|
||||||
@ -133,13 +134,14 @@ function! s:CacheErrors()
|
|||||||
let &shellpipe='&>'
|
let &shellpipe='&>'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let b:syntastic_qflist = SyntaxCheckers_{&ft}_GetQFList()
|
let b:syntastic_qflist = extend(b:syntastic_qflist, SyntaxCheckers_{ft}_GetQFList())
|
||||||
|
|
||||||
call setqflist(oldqfixlist)
|
call setqflist(oldqfixlist)
|
||||||
let &makeprg = old_makeprg
|
let &makeprg = old_makeprg
|
||||||
let &errorformat = old_errorformat
|
let &errorformat = old_errorformat
|
||||||
let &shellpipe=old_shellpipe
|
let &shellpipe=old_shellpipe
|
||||||
endif
|
endif
|
||||||
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"return true if there are cached errors for this buf
|
"return true if there are cached errors for this buf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user