Add support for g:syntastic_extra_filetypes.
This is useful when registering checkers outside syntastic.
This commit is contained in:
parent
daf74923b7
commit
b9cddb729f
@ -155,6 +155,9 @@ function! g:SyntasticRegistry.knownFiletypes()
|
|||||||
if exists('g:syntastic_filetype_map')
|
if exists('g:syntastic_filetype_map')
|
||||||
call extend(types, keys(g:syntastic_filetype_map))
|
call extend(types, keys(g:syntastic_filetype_map))
|
||||||
endif
|
endif
|
||||||
|
if exists('g:syntastic_extra_filetypes') && type(g:syntastic_extra_filetypes) == type([])
|
||||||
|
call extend(g:syntastic_extra_filetypes)
|
||||||
|
endif
|
||||||
return syntastic#util#unique(types)
|
return syntastic#util#unique(types)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user