Mercurial > vim
comparison runtime/compiler/tidy.vim @ 9041:34c45ee4210d
commit https://github.com/vim/vim/commit/06481427005a9dae39721087df94855f7d4d1feb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 30 15:13:38 2016 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Apr 2016 15:15:06 +0200 |
parents | f7add3891e95 |
children | 34b4eb3a8458 |
comparison
equal
deleted
inserted
replaced
9040:c3ba708cfa09 | 9041:34c45ee4210d |
---|---|
1 " Vim compiler file | 1 " Vim compiler file |
2 " Compiler: HTML Tidy | 2 " Compiler: HTML Tidy |
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> | 3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
4 " Last Change: 2013 Jul 7 | 4 " Last Change: 2016 Apr 21 |
5 | 5 |
6 if exists("current_compiler") | 6 if exists("current_compiler") |
7 finish | 7 finish |
8 endif | 8 endif |
9 let current_compiler = "tidy" | 9 let current_compiler = "tidy" |
10 | 10 |
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | 11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal |
12 command -nargs=* CompilerSet setlocal <args> | 12 command -nargs=* CompilerSet setlocal <args> |
13 endif | 13 endif |
14 | 14 |
15 CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ % | 15 CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S |
16 | 16 |
17 " sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element | 17 " foo.html:8:1: Warning: inserting missing 'foobar' element |
18 " sample error: foo.html:9:2: Error: <foobar> is not recognized! | 18 " foo.html:9:2: Error: <foobar> is not recognized! |
19 CompilerSet errorformat=%f:%l:%c:\ Error:%m,%f:%l:%c:\ Warning:%m,%-G%.%# | 19 CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%# |