You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
965 B
VimL
37 lines
965 B
VimL
11 years ago
|
"============================================================================
|
||
|
"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'
|
||
|
|
||
11 years ago
|
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
||
|
|
||
11 years ago
|
return SyntasticMake({
|
||
|
\ 'makeprg': makeprg,
|
||
11 years ago
|
\ 'errorformat': errorformat,
|
||
|
\ 'env': env })
|
||
11 years ago
|
endfunction
|
||
|
|
||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||
|
\ 'filetype': 'python',
|
||
|
\ 'name': 'py3kwarn'})
|
||
|
|
||
|
let &cpo = s:save_cpo
|
||
|
unlet s:save_cpo
|
||
|
|
||
|
" vim: set et sts=4 sw=4:
|