Fix column reporting in pyflakes.
This commit is contained in:
parent
38f73784e5
commit
2754bcb65b
@ -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({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user