From 3005301b5d262c7ccb11ecba8449cbd9300fb339 Mon Sep 17 00:00:00 2001 From: Eric Naeseth Date: Wed, 13 Oct 2010 15:46:07 +0800 Subject: [PATCH] Suppress Tidy warnings and errors for new HTML5 elements. --- syntax_checkers/html.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/html.vim b/syntax_checkers/html.vim index f0bd43c9..0f26493e 100644 --- a/syntax_checkers/html.vim +++ b/syntax_checkers/html.vim @@ -23,7 +23,7 @@ function! SyntaxCheckers_html_GetLocList() "grep out the ' lacks "summary" attribute' since it is almost "always present and almost always useless - let makeprg="tidy -e ".shellescape(expand('%'))." 2>&1 \\| grep -v '\ lacks \"summary\" attribute'" + let makeprg="tidy --new-blocklevel-tags 'section, article, aside, hgroup, header, footer, nav, figure, figcaption' --new-inline-tags 'video, audio, embed, mark, progress, meter, time, ruby, rt, rp, canvas, command, details, datalist' --new-empty-tags 'wbr, keygen' -e ".shellescape(expand('%'))." 2>&1 \\| grep -v '\ lacks \"summary\" attribute' \\| grep -v 'not approved by W3C'" let errorformat='%Wline %l column %c - Warning: %m,%Eline %l column %c - Error: %m,%-G%.%#,%-G%.%#' let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })