annotate runtime/compiler/checkstyle.vim @ 2185:0c1e413c32f1 v7.2.443

updated for version 7.2.443 Problem: Using taglist() on a tag file with duplicate fields generates an internal error. (Peter Odding) Solution: Check for duplicate field names.
author Bram Moolenaar <bram@vim.org>
date Sat, 12 Jun 2010 20:12:02 +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: Checkstyle
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/checkstyle.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 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 let current_compiler = "checkstyle"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " sample error: WebTable.java:282: '+=' is not preceeded with whitespace.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " WebTable.java:201:1: '{' should be on the previous line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 CompilerSet errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%#