Checker chktex: fix column handling.
This commit is contained in:
parent
742e8b0ba0
commit
7dec59738b
@ -6379,6 +6379,14 @@ Default: 1
|
||||
Whether to show informational messages ("chktex" option "-m"). By default
|
||||
informational messages are shown as warnings.
|
||||
|
||||
Note~
|
||||
|
||||
If you're checking files containing tab characters, then Vim's 'tabstop'
|
||||
must match "ChkTeX"'s idea of tabstop, otherwise column numbers will be
|
||||
shifted. At the time of this writing, "ChkTeX"'s tabstop is hardcoded to 8,
|
||||
so you should probably add something like this to your vimrc: >
|
||||
set tabstop=8
|
||||
<
|
||||
------------------------------------------------------------------------------
|
||||
2. lacheck *syntastic-tex-lacheck*
|
||||
|
||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.8.0-65'
|
||||
let g:_SYNTASTIC_VERSION = '3.8.0-69'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -27,12 +27,12 @@ let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_tex_chktex_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({ 'args_after': "-q -f \"%k:%n:%f:%l:%c:%m\n\"" })
|
||||
let makeprg = self.makeprgBuild({ 'args_after': ['-q', '-f', "%k:%n:%f:%l:%c:%m\n"] })
|
||||
|
||||
let errorformat =
|
||||
\ '%EError:%n:%f:%l:%c:%m,' .
|
||||
\ '%WWarning:%n:%f:%l:%c:%m,' .
|
||||
\ (g:syntastic_tex_chktex_showmsgs ? '%WMessage:%n:%f:%l:%c:%m,' : '') .
|
||||
\ '%EError:%n:%f:%l:%v:%m,' .
|
||||
\ '%WWarning:%n:%f:%l:%v:%m,' .
|
||||
\ (g:syntastic_tex_chktex_showmsgs ? '%WMessage:%n:%f:%l:%v:%m,' : '') .
|
||||
\ '%Z%p^,' .
|
||||
\ '%-G%.%#'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user