blob: 75be8b83d9108b1665272e46322faf088a5b4951 [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>
Bram Moolenaar06481422016-04-30 15:13:38 +02004" Last Change: 2016 Apr 21
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 Moolenaar06481422016-04-30 15:13:38 +020015CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S
Bram Moolenaar071d4272004-06-13 20:20:40 +000016
Bram Moolenaar06481422016-04-30 15:13:38 +020017" 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%.%#