annotate runtime/compiler/ant.vim @ 24226:f49f80a0905d v8.2.2654

patch 8.2.2654: Vim9: getting a character from a string can be slow Commit: https://github.com/vim/vim/commit/ff871400461183010d3ab98f3f326e4bb75e221b Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 26 13:34:05 2021 +0100 patch 8.2.2654: Vim9: getting a character from a string can be slow Problem: Vim9: getting a character from a string can be slow. Solution: Avoid a function call to get the character byte size. (https://github.com/vim/vim/issues/8000)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Mar 2021 13:45:02 +0100
parents 4707450c2b33
children e1df51f68736
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: ant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Johannes Zellner <johannes@zellner.org>
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
4 " Last Change: Mi, 13 Apr 2005 22:50:07 CEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 let current_compiler = "ant"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 let s:cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 set cpo&vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 CompilerSet makeprg=ant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " first line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " ant with jikes +E, which assumes the following
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " two property lines in your 'build.xml':
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 "
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
24 " <property name = "build.compiler" value = "jikes"/>
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
25 " <property name = "build.compiler.emacs" value = "true"/>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " second line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " ant with javac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " note that this will work also for tasks like [wtkbuild]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 "
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
32 CompilerSet errorformat=\ %#[%.%#]\ %#%f:%l:%v:%*\\d:%*\\d:\ %t%[%^:]%#:%m,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \%A\ %#[%.%#]\ %f:%l:\ %m,%-Z\ %#[%.%#]\ %p^,%C\ %#[%.%#]\ %#%m
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " ,%-C%.%#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 let &cpo = s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 unlet s:cpo_save