blob: 56baee2224238590cbf7bd7f8fe6e0eb63e5351c [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim compiler file
2" Compiler: HTML Tidy
Bram Moolenaardd007ed2013-07-09 15:44:17 +02003" Maintainer: Doug Kearns <dougkearns@gmail.com>
4" Last Change: 2013 Jul 7
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
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
Bram Moolenaardd007ed2013-07-09 15:44:17 +020015CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
Bram Moolenaar071d4272004-06-13 20:20:40 +000016
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%.%#