From 538dc2c7efafccc3714a98d0cfba1166b0a836ba Mon Sep 17 00:00:00 2001 From: Kamil Kisiel Date: Thu, 26 Sep 2013 15:53:11 -0700 Subject: [PATCH 1/2] Support multi-line error messages in the go checker. --- syntax_checkers/go/go.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/syntax_checkers/go/go.vim b/syntax_checkers/go/go.vim index 427e3e0b..a1b9e513 100644 --- a/syntax_checkers/go/go.vim +++ b/syntax_checkers/go/go.vim @@ -53,9 +53,10 @@ function! SyntaxCheckers_go_go_GetLocList() endif let errorformat = - \ '%f:%l:%c:%m,' . - \ '%f:%l%m,' . - \ '%-G#%.%#' + \ '%E%f:%l:%c:%m,' . + \ '%E%f:%l%m,' . + \ '%-G#%.%#,' . + \ '%Z%m' " The go compiler needs to either be run with an import path as an " argument or directly from the package directory. Since figuring out From dd8dfc61da3e27127063a4d922eda10ee5e43029 Mon Sep 17 00:00:00 2001 From: Kamil Kisiel Date: Fri, 27 Sep 2013 08:59:01 -0700 Subject: [PATCH 2/2] Update go.vim errorformat to remove extra spaces. --- syntax_checkers/go/go.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/go/go.vim b/syntax_checkers/go/go.vim index a1b9e513..5d5ae17c 100644 --- a/syntax_checkers/go/go.vim +++ b/syntax_checkers/go/go.vim @@ -55,8 +55,8 @@ function! SyntaxCheckers_go_go_GetLocList() let errorformat = \ '%E%f:%l:%c:%m,' . \ '%E%f:%l%m,' . - \ '%-G#%.%#,' . - \ '%Z%m' + \ '%C%\s%\+%m,' . + \ '%-G#%.%#' " The go compiler needs to either be run with an import path as an " argument or directly from the package directory. Since figuring out