1
0
Fork 0
mirror of synced 2024-11-05 08:58:59 -05:00
ultimate-vim/sources_non_forked/syntastic/syntax_checkers/python/py3kwarn.vim
2014-02-24 22:22:30 -04:00

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