properly parse c++ errors that contain col nums

This commit is contained in:
marty 2010-10-04 05:37:08 +08:00 committed by Chris Hoffman
parent f416158a35
commit 34c05863df

View File

@ -26,7 +26,7 @@ endif
function! SyntaxCheckers_cpp_GetLocList() function! SyntaxCheckers_cpp_GetLocList()
let makeprg = 'g++ -fsyntax-only '.shellescape(expand('%')) let makeprg = 'g++ -fsyntax-only '.shellescape(expand('%'))
let errorformat = '%-G%f:%s:,%f:%l: %m' let errorformat = '%-G%f:%s:,%f:%l:%c: %m,%f:%l: %m'
if expand('%') =~? '\%(.h\|.hpp\|.hh\)$' if expand('%') =~? '\%(.h\|.hpp\|.hh\)$'
if exists('g:syntastic_cpp_check_header') if exists('g:syntastic_cpp_check_header')