diff --git a/doc/syntastic-checkers.txt b/doc/syntastic-checkers.txt index 2700a310..f4db1157 100644 --- a/doc/syntastic-checkers.txt +++ b/doc/syntastic-checkers.txt @@ -6459,7 +6459,7 @@ Default: 1 Whether to show informational messages ("chktex" option "-m"). By default informational messages are shown as warnings. -Note~ +Notes~ If you're checking files containing tab characters, then Vim's 'tabstop' must match "ChkTeX"'s idea of tabstop, otherwise column numbers will be @@ -6467,6 +6467,9 @@ 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 < +Note also that because of the way "ChkTeX" handles error formats column +numbers are not available on Windows when running under "cmd.exe". + ------------------------------------------------------------------------------ 2. lacheck *syntastic-tex-lacheck* diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 3f177d26..31b5c204 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.8.0-84' +let g:_SYNTASTIC_VERSION = '3.8.0-87' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/tex/chktex.vim b/syntax_checkers/tex/chktex.vim index 560804da..a631ab44 100644 --- a/syntax_checkers/tex/chktex.vim +++ b/syntax_checkers/tex/chktex.vim @@ -27,12 +27,18 @@ 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"] }) + if !exists('s:sumb_quoting') + let s:dumb_quoting = syntastic#util#isRunningWindows() && exists('+shellslash') && !&shellslash + endif + let makeprg = self.makeprgBuild({ 'args_after': (s:dumb_quoting ? ['-q', '-v1'] : ['-q', '-f', "%k:%n:%f:%l:%c:%m\n"]) }) let errorformat = \ '%EError:%n:%f:%l:%v:%m,' . \ '%WWarning:%n:%f:%l:%v:%m,' . \ (g:syntastic_tex_chktex_showmsgs ? '%WMessage:%n:%f:%l:%v:%m,' : '') . + \ '%EError %n in %f line %l: %m,' . + \ '%WWarning %n in %f line %l: %m,' . + \ (g:syntastic_tex_chktex_showmsgs ? '%WMessage %n in %f line %l: %m,' : '') . \ '%Z%p^,' . \ '%-G%.%#'