xref: /vim-8.2.3635/runtime/compiler/tidy.vim (revision cf2d8dee)
1" Vim compiler file
2" Compiler:	HTML Tidy
3" Maintainer:	Doug Kearns <[email protected]>
4" Last Change:	2013 Jul 7
5
6if exists("current_compiler")
7  finish
8endif
9let current_compiler = "tidy"
10
11if exists(":CompilerSet") != 2		" older Vim always used :setlocal
12  command -nargs=* CompilerSet setlocal <args>
13endif
14
15CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
16
17" sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
18" sample error:   foo.html:9:2: Error: <foobar> is not recognized!
19CompilerSet errorformat=%f:%l:%c:\ Error:%m,%f:%l:%c:\ Warning:%m,%-G%.%#
20