97 lines · 5.7 KB · Text
RawDownload
" Vim syntax file" Language:	ANT build file (xml)" Maintainer:	Johannes Zellner <johannes@zellner.org>" Last Change:	Tue Apr 27 13:05:59 CEST 2004" Filenames:	build.xml" $Id: ant.vim,v 1.1 2004/06/13 18:13:18 vimboss Exp $ " Quit when a syntax file was already loadedif exists("b:current_syntax")    finishendif let s:ant_cpo_save = &cposet cpo&vim runtime! syntax/xml.vim syn case ignore if !exists('*AntSyntaxScript')    fun AntSyntaxScript(tagname, synfilename)	unlet b:current_syntax	let s:include = expand("<sfile>:p:h").'/'.a:synfilename	if filereadable(s:include)	    exe 'syn include @ant'.a:tagname.' '.s:include	else	    exe 'syn include @ant'.a:tagname." $VIMRUNTIME/syntax/".a:synfilename	endif 	exe 'syn region ant'.a:tagname		    \." start=#<script[^>]\\{-}language\\s*=\\s*['\"]".a:tagname."['\"]\\(>\\|[^>]*[^/>]>\\)#"		    \.' end=#</script>#'		    \.' fold'		    \.' contains=@ant'.a:tagname.',xmlCdataStart,xmlCdataEnd,xmlTag,xmlEndTag'		    \.' keepend'	exe 'syn cluster xmlRegionHook add=ant'.a:tagname    endfunendif " TODO: add more script languages here ?call AntSyntaxScript('javascript', 'javascript.vim')call AntSyntaxScript('jpython', 'python.vim')  syn cluster xmlTagHook add=antElement syn keyword antElement display WsdlToDotnet addfiles and ant antcall antstructure apply archives arg argumentsyn keyword antElement display assertions attrib attribute available basename bcc blgenclient bootclasspathsyn keyword antElement display borland bottom buildnumber buildpath buildpathelement bunzip2 bzip2 cabsyn keyword antElement display catalogpath cc cccheckin cccheckout cclock ccmcheckin ccmcheckintask ccmcheckoutsyn keyword antElement display ccmcreatetask ccmkattr ccmkbl ccmkdir ccmkelem ccmklabel ccmklbtypesyn keyword antElement display ccmreconfigure ccrmtype ccuncheckout ccunlock ccupdate checksum chgrp chmodsyn keyword antElement display chown classconstants classes classfileset classpath commandline commentsyn keyword antElement display compilerarg compilerclasspath concat concatfilter condition copy copydirsyn keyword antElement display copyfile coveragepath csc custom cvs cvschangelog cvspass cvstagdiff cvsversionsyn keyword antElement display daemons date defaultexcludes define delete deletecharacters deltree dependsyn keyword antElement display depends dependset depth description different dirname dirset disable dnamesyn keyword antElement display doclet doctitle dtd ear echo echoproperties ejbjar element enable entity entrysyn keyword antElement display env equals escapeunicode exclude excludepackage excludesfile exec execonsyn keyword antElement display existing expandproperties extdirs extension extensionSet extensionset factorysyn keyword antElement display fail filelist filename filepath fileset filesmatch filetokenizer filtersyn keyword antElement display filterchain filterreader filters filterset filtersfile fixcrlf footer formatsyn keyword antElement display from ftp generic genkey get gjdoc grant group gunzip gzip header headfilter httpsyn keyword antElement display ignoreblank ilasm ildasm import importtypelib include includesfile input iplanetsyn keyword antElement display iplanet-ejbc isfalse isreference isset istrue jar jarlib-availablesyn keyword antElement display jarlib-manifest jarlib-resolve java javac javacc javadoc javadoc2 jboss jdependsyn keyword antElement display jjdoc jjtree jlink jonas jpcoverage jpcovmerge jpcovreport jsharpc jspcsyn keyword antElement display junitreport jvmarg lib libfileset linetokenizer link loadfile loadpropertiessyn keyword antElement display location macrodef mail majority manifest map mapper marker mergefiles messagesyn keyword antElement display metainf method mimemail mkdir mmetrics modified move mparse none not options orsyn keyword antElement display os outputproperty package packageset parallel param patch path pathconvertsyn keyword antElement display pathelement patternset permissions prefixlines present presetdef projectsyn keyword antElement display property propertyfile propertyref propertyset pvcs pvcsproject record referencesyn keyword antElement display regexp rename renameext replace replacefilter replaceregex replaceregexpsyn keyword antElement display replacestring replacetoken replacetokens replacevalue replyto report resourcesyn keyword antElement display revoke rmic root rootfileset rpm scp section selector sequential serverdeploysyn keyword antElement display setproxy signjar size sleep socket soscheckin soscheckout sosget soslabel sourcesyn keyword antElement display sourcepath sql src srcfile srcfilelist srcfiles srcfileset sshexec stcheckinsyn keyword antElement display stcheckout stlabel stlist stringtokenizer stripjavacomments striplinebreakssyn keyword antElement display striplinecomments style subant substitution support symlink sync syspropertysyn keyword antElement display syspropertyset tabstospaces tag taglet tailfilter tar tarfileset targetsyn keyword antElement display targetfile targetfilelist targetfileset taskdef tempfile test testlet text titlesyn keyword antElement display to token tokenfilter touch transaction translate triggers trim tstamp typesyn keyword antElement display typedef unjar untar unwar unzip uptodate url user vbc vssadd vsscheckinsyn keyword antElement display vsscheckout vsscp vsscreate vssget vsshistory vsslabel waitfor war wasclasspathsyn keyword antElement display webapp webinf weblogic weblogictoplink websphere whichresource wlclasspathsyn keyword antElement display wljspc wsdltodotnet xmlcatalog xmlproperty xmlvalidate xslt zip zipfilesetsyn keyword antElement display zipgroupfileset hi def link antElement Statement let b:current_syntax = "ant" let &cpo = s:ant_cpo_saveunlet s:ant_cpo_save " vim: ts=8