Add support for g:syntastic_extra_filetypes.

This is useful when registering checkers outside syntastic.
This commit is contained in:
LCD 47 2014-02-07 11:37:28 +02:00
parent daf74923b7
commit b9cddb729f

View File

@ -155,6 +155,9 @@ function! g:SyntasticRegistry.knownFiletypes()
if exists('g:syntastic_filetype_map')
call extend(types, keys(g:syntastic_filetype_map))
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)
endfunction