vim-castle/.vim/bundle/syntastic/syntax_checkers/python/py3kwarn.vim
Brian Buller 4eb069cf26 Updating Repo
* Added syntastic
* Updated submodules
2016-12-29 10:41:15 -06:00

37 lines
976 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
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_py3kwarn_GetLocList() dict
let makeprg = self.makeprgBuild({})
let errorformat = '%W%f:%l:%c: %m'
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'env': env })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'py3kwarn'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set sw=4 sts=4 et fdm=marker: