6d81ac5dd0
Make syntastic#makeprg#build() a dictionary function. Remove the mandatory checker argument to syntastic#makeprg#build().
25 lines
763 B
VimL
25 lines
763 B
VimL
"============================================================================
|
|
"File: py3kwarn.vim
|
|
"Description: Syntax checking plugin for syntastic.vim
|
|
"Authors: Liam Curry <liam@curry.name>
|
|
"
|
|
"============================================================================
|
|
if exists("g:loaded_syntastic_python_py3kwarn_checker")
|
|
finish
|
|
endif
|
|
let g:loaded_syntastic_python_py3kwarn_checker=1
|
|
|
|
function! SyntaxCheckers_python_py3kwarn_GetLocList() dict
|
|
let makeprg = self.makeprgBuild({})
|
|
|
|
let errorformat = '%W%f:%l:%c: %m'
|
|
|
|
return SyntasticMake({
|
|
\ 'makeprg': makeprg,
|
|
\ 'errorformat': errorformat })
|
|
endfunction
|
|
|
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
|
\ 'filetype': 'python',
|
|
\ 'name': 'py3kwarn'})
|