[PATCH] Tweaked c syntax checker errorformat
Added a more specific c syntax checker errorformat before the more general ones so the jumping is not broken by assuming the line number is a part of the file. Signed-off-by: kongo2002 <kongo2002@googlemail.com>
This commit is contained in:
parent
65531d0ca3
commit
d9ba6d7963
@ -84,9 +84,9 @@ endfunction
|
||||
function! SyntaxCheckers_c_GetLocList()
|
||||
let makeprg = 'gcc -fsyntax-only '.shellescape(expand('%')).' -I. -I..'
|
||||
let errorformat = '%-G%f:%s:,%-G%f:%l: %#error: %#(Each undeclared '.
|
||||
\ 'identifier is reported only%.%#,%-G%f:%l: %#error: %#for '.
|
||||
\ 'each function it appears%.%#,%-GIn file included%.%#,'.
|
||||
\ '%-G %#from %f:%l\,,%f:%l: %trror: %m,%f:%l: %m'
|
||||
\ 'identifier is reported only%.%#,%-G%f:%l: %#error: %#for '.
|
||||
\ 'each function it appears%.%#,%-GIn file included%.%#,'.
|
||||
\ '%-G %#from %f:%l\,,%f:%l:%c: %m,%f:%l: %trror: %m,%f:%l: %m'
|
||||
|
||||
if expand('%') =~? '.h$'
|
||||
if exists('g:syntastic_c_check_header')
|
||||
|
Loading…
Reference in New Issue
Block a user