Fix column reporting in pyflakes.

This commit is contained in:
LCD 47 2014-01-04 19:26:56 +02:00
parent 38f73784e5
commit 2754bcb65b

View File

@ -45,14 +45,19 @@ function! SyntaxCheckers_python_pyflakes_GetLocList() dict
let errorformat = let errorformat =
\ '%E%f:%l: could not compile,'. \ '%E%f:%l: could not compile,'.
\ '%-Z%p^,'. \ '%-Z%p^,'.
\ '%E%f:%l:%c: %m,'.
\ '%E%f:%l: %m,'. \ '%E%f:%l: %m,'.
\ '%-G%.%#' \ '%-G%.%#'
return SyntasticMake({ let loclist = SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat, \ 'errorformat': errorformat,
\ 'defaults': {'text': "Syntax error"} }) \ 'defaults': {'text': "Syntax error"} })
for e in loclist
let e['vcol'] = 0
endfor
return loclist
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({