Cleanup errorformat for tex/chktex.
This commit is contained in:
parent
7dba68cffb
commit
6008371c11
@ -23,7 +23,7 @@
|
|||||||
" - g:syntastic_tex_chktex_args (string; default: empty)
|
" - g:syntastic_tex_chktex_args (string; default: empty)
|
||||||
" command line options to pass to chktex
|
" command line options to pass to chktex
|
||||||
|
|
||||||
if exists("g:loaded_syntastic_tex_chktex_checker")
|
if exists('g:loaded_syntastic_tex_chktex_checker')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_tex_chktex_checker = 1
|
let g:loaded_syntastic_tex_chktex_checker = 1
|
||||||
@ -33,7 +33,7 @@ if !exists('g:syntastic_tex_chktex_showmsgs')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
function! SyntaxCheckers_tex_chktex_IsAvailable()
|
function! SyntaxCheckers_tex_chktex_IsAvailable()
|
||||||
return executable("chktex")
|
return executable('chktex')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_tex_chktex_GetLocList()
|
function! SyntaxCheckers_tex_chktex_GetLocList()
|
||||||
@ -44,10 +44,10 @@ function! SyntaxCheckers_tex_chktex_GetLocList()
|
|||||||
\ 'subchecker': 'chktex' })
|
\ 'subchecker': 'chktex' })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%EError\ %\\d%\\+\ in\ %f\ line\ %l:\ %m,' .
|
\ '%EError %n in %f line %l: %m,' .
|
||||||
\ '%WWarning\ %\\d%\\+\ in\ %f\ line\ %l:\ %m,' .
|
\ '%WWarning %n in %f line %l: %m,' .
|
||||||
\ (g:syntastic_tex_chktex_showmsgs ? '%WMessage\ %\\d%\\+\ in\ %f\ line %l:\ %m,' : '') .
|
\ (g:syntastic_tex_chktex_showmsgs ? '%WMessage %n in %f line %l: %m,' : '') .
|
||||||
\ '%+Z%p^,' .
|
\ '%Z%p^,' .
|
||||||
\ '%-G%.%#'
|
\ '%-G%.%#'
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
|
Loading…
Reference in New Issue
Block a user