2013-04-15 17:15:49 -04:00
|
|
|
"============================================================================
|
|
|
|
"File: py3kwarn.vim
|
|
|
|
"Description: Syntax checking plugin for syntastic.vim
|
|
|
|
"Authors: Liam Curry <liam@curry.name>
|
|
|
|
"
|
|
|
|
"============================================================================
|
2014-01-03 04:29:08 -05:00
|
|
|
|
2013-04-15 17:15:49 -04:00
|
|
|
if exists("g:loaded_syntastic_python_py3kwarn_checker")
|
|
|
|
finish
|
|
|
|
endif
|
2014-01-03 04:29:08 -05:00
|
|
|
let g:loaded_syntastic_python_py3kwarn_checker = 1
|
|
|
|
|
|
|
|
let s:save_cpo = &cpo
|
|
|
|
set cpo&vim
|
2013-04-15 17:15:49 -04:00
|
|
|
|
2013-10-28 07:53:33 -04:00
|
|
|
function! SyntaxCheckers_python_py3kwarn_GetLocList() dict
|
2014-04-23 14:16:41 -04:00
|
|
|
let makeprg = self.makeprgBuild({
|
|
|
|
\ 'exe_before': (syntastic#util#isRunningWindows() ? '' : 'TERM=dumb') })
|
2013-05-31 14:05:45 -04:00
|
|
|
|
2013-04-15 17:15:49 -04:00
|
|
|
let errorformat = '%W%f:%l:%c: %m'
|
2013-05-31 14:05:45 -04:00
|
|
|
|
|
|
|
return SyntasticMake({
|
|
|
|
\ 'makeprg': makeprg,
|
|
|
|
\ 'errorformat': errorformat })
|
2013-04-15 17:15:49 -04:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
|
|
|
\ 'filetype': 'python',
|
|
|
|
\ 'name': 'py3kwarn'})
|
2014-01-03 04:29:08 -05:00
|
|
|
|
|
|
|
let &cpo = s:save_cpo
|
|
|
|
unlet s:save_cpo
|
|
|
|
|
|
|
|
" vim: set et sts=4 sw=4:
|