2014-02-08 05:05:16 -05: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
|
|
|
|
|
|
|
|
let s:save_cpo = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
function! SyntaxCheckers_python_py3kwarn_GetLocList() dict
|
2014-08-03 18:02:51 -04:00
|
|
|
let makeprg = self.makeprgBuild({})
|
2014-02-08 05:05:16 -05:00
|
|
|
|
|
|
|
let errorformat = '%W%f:%l:%c: %m'
|
|
|
|
|
2014-08-03 18:02:51 -04:00
|
|
|
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
|
|
|
|
2014-02-08 05:05:16 -05:00
|
|
|
return SyntasticMake({
|
|
|
|
\ 'makeprg': makeprg,
|
2014-08-03 18:02:51 -04:00
|
|
|
\ 'errorformat': errorformat,
|
|
|
|
\ 'env': env })
|
2014-02-08 05:05:16 -05:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
|
|
|
\ 'filetype': 'python',
|
|
|
|
\ 'name': 'py3kwarn'})
|
|
|
|
|
|
|
|
let &cpo = s:save_cpo
|
|
|
|
unlet s:save_cpo
|
|
|
|
|
2015-01-18 07:58:28 -05:00
|
|
|
" vim: set sw=4 sts=4 et fdm=marker:
|