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')
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user