annotate runtime/syntax/ant.vim @ 2642:840c3cadb842

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Tue, 16 Nov 2010 20:34:40 +0100
parents 7bc41231fbc7
children aced7e335fea
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 syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: ANT build file (xml)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Johannes Zellner <johannes@zellner.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: Tue Apr 27 13:05:59 CEST 2004
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Filenames: build.xml
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
6 " $Id: ant.vim,v 1.1 2004/06/13 18:13:18 vimboss Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let s:ant_cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 set cpo&vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 runtime! syntax/xml.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 if !exists('*AntSyntaxScript')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 fun AntSyntaxScript(tagname, synfilename)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 let s:include = expand("<sfile>:p:h").'/'.a:synfilename
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 if filereadable(s:include)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 exe 'syn include @ant'.a:tagname.' '.s:include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 exe 'syn include @ant'.a:tagname." $VIMRUNTIME/syntax/".a:synfilename
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 exe 'syn region ant'.a:tagname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 \." start=#<script[^>]\\{-}language\\s*=\\s*['\"]".a:tagname."['\"]\\(>\\|[^>]*[^/>]>\\)#"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 \.' end=#</script>#'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \.' fold'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 \.' contains=@ant'.a:tagname.',xmlCdataStart,xmlCdataEnd,xmlTag,xmlEndTag'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 \.' keepend'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 exe 'syn cluster xmlRegionHook add=ant'.a:tagname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endfun
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " TODO: add more script languages here ?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 call AntSyntaxScript('javascript', 'javascript.vim')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 call AntSyntaxScript('jpython', 'python.vim')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn cluster xmlTagHook add=antElement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword antElement display WsdlToDotnet addfiles and ant antcall antstructure apply archives arg argument
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword antElement display assertions attrib attribute available basename bcc blgenclient bootclasspath
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword antElement display borland bottom buildnumber buildpath buildpathelement bunzip2 bzip2 cab
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword antElement display catalogpath cc cccheckin cccheckout cclock ccmcheckin ccmcheckintask ccmcheckout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword antElement display ccmcreatetask ccmkattr ccmkbl ccmkdir ccmkelem ccmklabel ccmklbtype
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword antElement display ccmreconfigure ccrmtype ccuncheckout ccunlock ccupdate checksum chgrp chmod
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword antElement display chown classconstants classes classfileset classpath commandline comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword antElement display compilerarg compilerclasspath concat concatfilter condition copy copydir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword antElement display copyfile coveragepath csc custom cvs cvschangelog cvspass cvstagdiff cvsversion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword antElement display daemons date defaultexcludes define delete deletecharacters deltree depend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword antElement display depends dependset depth description different dirname dirset disable dname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword antElement display doclet doctitle dtd ear echo echoproperties ejbjar element enable entity entry
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword antElement display env equals escapeunicode exclude excludepackage excludesfile exec execon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword antElement display existing expandproperties extdirs extension extensionSet extensionset factory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword antElement display fail filelist filename filepath fileset filesmatch filetokenizer filter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword antElement display filterchain filterreader filters filterset filtersfile fixcrlf footer format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword antElement display from ftp generic genkey get gjdoc grant group gunzip gzip header headfilter http
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword antElement display ignoreblank ilasm ildasm import importtypelib include includesfile input iplanet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword antElement display iplanet-ejbc isfalse isreference isset istrue jar jarlib-available
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword antElement display jarlib-manifest jarlib-resolve java javac javacc javadoc javadoc2 jboss jdepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword antElement display jjdoc jjtree jlink jonas jpcoverage jpcovmerge jpcovreport jsharpc jspc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword antElement display junitreport jvmarg lib libfileset linetokenizer link loadfile loadproperties
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword antElement display location macrodef mail majority manifest map mapper marker mergefiles message
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword antElement display metainf method mimemail mkdir mmetrics modified move mparse none not options or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword antElement display os outputproperty package packageset parallel param patch path pathconvert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword antElement display pathelement patternset permissions prefixlines present presetdef project
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword antElement display property propertyfile propertyref propertyset pvcs pvcsproject record reference
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword antElement display regexp rename renameext replace replacefilter replaceregex replaceregexp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword antElement display replacestring replacetoken replacetokens replacevalue replyto report resource
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword antElement display revoke rmic root rootfileset rpm scp section selector sequential serverdeploy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword antElement display setproxy signjar size sleep socket soscheckin soscheckout sosget soslabel source
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword antElement display sourcepath sql src srcfile srcfilelist srcfiles srcfileset sshexec stcheckin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword antElement display stcheckout stlabel stlist stringtokenizer stripjavacomments striplinebreaks
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword antElement display striplinecomments style subant substitution support symlink sync sysproperty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword antElement display syspropertyset tabstospaces tag taglet tailfilter tar tarfileset target
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword antElement display targetfile targetfilelist targetfileset taskdef tempfile test testlet text title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword antElement display to token tokenfilter touch transaction translate triggers trim tstamp type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword antElement display typedef unjar untar unwar unzip uptodate url user vbc vssadd vsscheckin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword antElement display vsscheckout vsscp vsscreate vssget vsshistory vsslabel waitfor war wasclasspath
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword antElement display webapp webinf weblogic weblogictoplink websphere whichresource wlclasspath
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword antElement display wljspc wsdltodotnet xmlcatalog xmlproperty xmlvalidate xslt zip zipfileset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword antElement display zipgroupfileset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 hi def link antElement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 let b:current_syntax = "ant"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 let &cpo = s:ant_cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 unlet s:ant_cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 " vim: ts=8