syntastic/syntax_checkers/python/py3kwarn.vim

37 lines
976 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>
"
"============================================================================
2015-03-25 12:44:34 -04:00
if exists('g:loaded_syntastic_python_py3kwarn_checker')
2013-04-15 17:15:49 -04:00
finish
endif
let g:loaded_syntastic_python_py3kwarn_checker = 1
let s:save_cpo = &cpo
set cpo&vim
2013-04-15 17:15:49 -04:00
function! SyntaxCheckers_python_py3kwarn_GetLocList() dict
let makeprg = self.makeprgBuild({})
2013-04-15 17:15:49 -04:00
let errorformat = '%W%f:%l:%c: %m'
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'env': env })
2013-04-15 17:15:49 -04:00
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'py3kwarn'})
let &cpo = s:save_cpo
unlet s:save_cpo
2015-01-04 05:46:54 -05:00
" vim: set sw=4 sts=4 et fdm=marker: