From d7b29121a2f798decc6969c775575deda5266280 Mon Sep 17 00:00:00 2001 From: Kamil Kisiel Date: Fri, 14 Feb 2014 12:32:57 -0800 Subject: [PATCH] Add pattern to match warnings from C compilers when checking Go code. --- syntax_checkers/go/go.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax_checkers/go/go.vim b/syntax_checkers/go/go.vim index afc392f4..868d7140 100644 --- a/syntax_checkers/go/go.vim +++ b/syntax_checkers/go/go.vim @@ -56,7 +56,9 @@ function! SyntaxCheckers_go_go_GetLocList() dict let cleanup = 1 endif + " The first pattern is for warnings from C compilers. let errorformat = + \ '%W%f:%l: warning: %m,' . \ '%E%f:%l:%c:%m,' . \ '%E%f:%l:%m,' . \ '%C%\s%\+%m,' .