From 9321bc79edc0e45e750e6c3b744f47ff2a8321da Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Fri, 19 Sep 2014 10:33:56 +0300 Subject: [PATCH] PC-Lint: add column numbers. Cleanup. --- plugin/syntastic.vim | 2 +- syntax_checkers/c/pc_lint.vim | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 034c2373..b9362f28 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.5.0-23' +let g:syntastic_version = '3.5.0-24' lockvar g:syntastic_version " Sanity checks {{{1 diff --git a/syntax_checkers/c/pc_lint.vim b/syntax_checkers/c/pc_lint.vim index 46630d12..c4f1b195 100644 --- a/syntax_checkers/c/pc_lint.vim +++ b/syntax_checkers/c/pc_lint.vim @@ -25,21 +25,24 @@ endif function! SyntaxCheckers_c_pc_lint_GetLocList() dict let config = findfile(g:syntastic_pc_lint_config_file, '.;') - " -hF1 - show filename, try to make message 1 line + " -hFs1 - show filename, add space after messages, try to make message 1 line " -width(0,0) - make sure there are no line breaks + " -t - set tab size + " -v - turn off verbosity let makeprg = self.makeprgBuild({ \ 'args': (filereadable(config) ? syntastic#util#shescape(fnamemodify(config, ':p')) : ''), - \ 'args_after': ['-hF1', '-width(0,0)'] }) + \ 'args_after': ['-hFs1', '-width(0,0)', '-t' . &tabstop, '-format=%f:%l:%C:%t:%n:%m'] }) let errorformat = - \ '%E%f %l Error %n: %m,' . - \ '%W%f %l Warning %n: %m,' . - \ '%W%f %l Info %n: %m,' . + \ '%E%f:%l:%v:Error:%n:%m,' . + \ '%W%f:%l:%v:Warning:%n:%m,' . + \ '%W%f:%l:%v:Info:%n:%m,' . \ '%-G%.%#' return SyntasticMake({ \ 'makeprg': makeprg, - \ 'errorformat': errorformat }) + \ 'errorformat': errorformat, + \ 'postprocess': ['cygwinRemoveCR'] }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({