From e8579fc8c9fef744191dc7af838e885369516207 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Fri, 7 Jun 2013 11:50:54 +0300 Subject: [PATCH] Update errorformat for sass. Fixes #42. --- syntax_checkers/sass/sass.vim | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/syntax_checkers/sass/sass.vim b/syntax_checkers/sass/sass.vim index 15b85264..4b8d4863 100644 --- a/syntax_checkers/sass/sass.vim +++ b/syntax_checkers/sass/sass.vim @@ -46,16 +46,31 @@ function! SyntaxCheckers_sass_sass_GetLocList() \ 'subchecker': 'sass' }) let errorformat = - \ '%ESyntax %trror:%m,' . + \ '%ESyntax %trror: %m,' . + \ '%+C %.%#,' . + \ '%C on line %l of %f\, %.%#,' . \ '%C on line %l of %f,' . - \ '%Z%.%#,' . - \ '%Wwarning on line %l:,' . + \ '%-G %\+from line %.%#,' . + \ '%-G %\+Use --trace for backtrace.,' . + \ '%W%>DEPRECATION WARNING on line %l of %f:,' . + \ '%+C%> %.%#,' . + \ '%W%>WARNING: on line %l of %f:,' . + \ '%+C%> %.%#,' . + \ '%W%>WARNING on line %l of %f: %m,' . + \ '%+C%> %.%#,' . + \ '%W%>WARNING on line %l of %f:,' . \ '%Z%m,' . - \ 'Syntax %trror on line %l: %m' + \ '%W%>WARNING: %m,' . + \ '%C on line %l of %f\, %.%#,' . + \ '%C on line %l of %f,' . + \ '%-G %\+from line %.%#,' . + \ 'Syntax %trror on line %l: %m,' . + \ '%-G%.%#' return SyntasticMake({ \ 'makeprg': makeprg, - \ 'errorformat': errorformat }) + \ 'errorformat': errorformat, + \ 'postprocess': ['compressWhitespace'] }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({