xref: /vim-8.2.3635/runtime/compiler/tidy.vim (revision fb094e14)
1" Vim compiler file
2" Compiler:	HTML Tidy
3" Maintainer:	Doug Kearns <[email protected]>
4" Last Change:	2016 Apr 21
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\ %:S
16
17" foo.html:8:1: Warning: inserting missing 'foobar' element
18" foo.html:9:2: Error: <foobar> is not recognized!
19CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%#
20