annotate runtime/compiler/tidy.vim @ 4841:81dedcd64821 v7.3.1167

updated for version 7.3.1167 Problem: Python configure check doesn't reject Python 2 when requesting Python 3. Some systems need -pthreads instead of -pthread. Solution: Adjust configure accordingly. (Andrei Olsen)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Jun 2013 19:53:45 +0200
parents 125e80798a85
children f7add3891e95
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim compiler file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Compiler: HTML Tidy
36
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
3 " Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
4 " URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/tidy.vim
125e80798a85 updated for version 7.0021
vimboss
parents: 7
diff changeset
5 " Last Change: 2004 Nov 27
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " NOTE: set 'tidy_compiler_040800' if you are using the 4th August 2000 release
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " of HTML Tidy.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let current_compiler = "tidy"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " this is needed to work around a bug in the 04/08/00 release of tidy which
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " failed to set the filename if the -quiet option was used
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 if exists("tidy_compiler_040800")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 CompilerSet makeprg=tidy\ -errors\ --gnu-emacs\ yes\ %
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " sample error: foo.html:9:2: Error: <foobar> is not recognized!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 CompilerSet errorformat=%f:%l:%c:\ Error:%m,%f:%l:%c:\ Warning:%m,%-G%.%#