check all subfiletypes if &ft = "foo.bar"
This commit is contained in:
parent
00f8718f6e
commit
23a3edb4ed
@ -121,25 +121,27 @@ 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, '\.')
|
||||||
let oldqfixlist = getqflist()
|
if exists("*SyntaxCheckers_". ft ."_GetQFList") && filereadable(expand("%"))
|
||||||
let old_makeprg = &makeprg
|
let oldqfixlist = getqflist()
|
||||||
let old_shellpipe = &shellpipe
|
let old_makeprg = &makeprg
|
||||||
let old_errorformat = &errorformat
|
let old_shellpipe = &shellpipe
|
||||||
|
let old_errorformat = &errorformat
|
||||||
|
|
||||||
if !s:running_windows
|
if !s:running_windows
|
||||||
"this is a hack to stop the screen needing to be ':redraw'n when
|
"this is a hack to stop the screen needing to be ':redraw'n when
|
||||||
"when :make is run. Otherwise the screen flickers annoyingly
|
"when :make is run. Otherwise the screen flickers annoyingly
|
||||||
let &shellpipe='&>'
|
let &shellpipe='&>'
|
||||||
|
endif
|
||||||
|
|
||||||
|
let b:syntastic_qflist = extend(b:syntastic_qflist, SyntaxCheckers_{ft}_GetQFList())
|
||||||
|
|
||||||
|
call setqflist(oldqfixlist)
|
||||||
|
let &makeprg = old_makeprg
|
||||||
|
let &errorformat = old_errorformat
|
||||||
|
let &shellpipe=old_shellpipe
|
||||||
endif
|
endif
|
||||||
|
endfor
|
||||||
let b:syntastic_qflist = SyntaxCheckers_{&ft}_GetQFList()
|
|
||||||
|
|
||||||
call setqflist(oldqfixlist)
|
|
||||||
let &makeprg = old_makeprg
|
|
||||||
let &errorformat = old_errorformat
|
|
||||||
let &shellpipe=old_shellpipe
|
|
||||||
endif
|
|
||||||
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