fine-tune c errorformat

This commit is contained in:
kongo2002 2010-09-24 22:51:58 +08:00 committed by Martin Grenfell
parent 2e028581f0
commit f822e3a9ca

View File

@ -81,7 +81,9 @@ endfunction
function! SyntaxCheckers_c_GetLocList()
let makeprg = 'gcc -fsyntax-only '.shellescape(expand('%'))
let errorformat = '%-G%f:%s:,%f:%l: %m'
let errorformat = '%-G%f:%s:,%-G%f:%l: %#error: %#(Each undeclared '
\ 'identifier is reported only%.%#,%-G%f:%l: %#error: %#for '
\ 'each function it appears%.%#,%f:%l: %trror: %m,%f:%l: %m'
if expand('%') =~? '.h$'
if exists('g:syntastic_c_check_header')