From e3cac9dbff10d44c8a45749ed57ad082c891c614 Mon Sep 17 00:00:00 2001 From: Heath Nail Date: Mon, 24 Oct 2011 00:45:03 -0400 Subject: [PATCH] Display messages for csslint. Simplify patterns and specify compact format for csslint cli. --- syntax_checkers/css.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntax_checkers/css.vim b/syntax_checkers/css.vim index 52f92b35..cbdc1373 100644 --- a/syntax_checkers/css.vim +++ b/syntax_checkers/css.vim @@ -19,10 +19,10 @@ if !executable("csslint") endif function! SyntaxCheckers_css_GetLocList() - let makeprg = 'csslint '.shellescape(expand('%')) + let makeprg = 'csslint --format=compact '.shellescape(expand('%')) - " Print CSS Lint's 'Welcome' and error/warning messages. Ignores the code line. - let errorformat = '%+Gcsslint:\ There%.%#,%A%f:,%C%n:\ %t%\\w%\\+\ at\ line\ %l\,\ col\ %c,%Z%m\ at\ line%.%#,%A%>%f:,%C%n:\ %t%\\w%\\+\ at\ line\ %l\,\ col\ %c,%Z%m,%-G%.%#' + " Print CSS Lint's error/warning messages from compact format. Ignores blank lines. + let errorformat = '%f: line %l\, col %c\, %m,%-G' let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })