syntastic/syntax_checkers/python/py3kwarn.vim

32 lines
963 B
VimL
Raw Normal View History

2013-04-15 17:15:49 -04:00
"============================================================================
"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_IsAvailable()
return executable('py3kwarn')
endfunction
function! SyntaxCheckers_python_py3kwarn_GetLocList()
let makeprg = syntastic#makeprg#build({
\ 'exe': 'py3kwarn',
\ 'filetype': 'python',
\ 'subchecker': 'py3kwarn' })
2013-04-15 17:15:49 -04:00
let errorformat = '%W%f:%l:%c: %m'
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
2013-04-15 17:15:49 -04:00
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'py3kwarn'})