Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ant.vim98 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:		ANT build file (xml)3" Maintainer:		Doug Kearns <dougkearns@gmail.com>4" Previous Maintainer:	Johannes Zellner <johannes@zellner.org>5" Last Change:		2024 Jan 276" Filenames:		build.xml7 8" Quit when a syntax file was already loaded9if exists("b:current_syntax")10    finish11endif12 13let s:ant_cpo_save = &cpo14set cpo&vim15 16runtime! syntax/xml.vim17 18syn case ignore19 20if !exists('*AntSyntaxScript')21    fun AntSyntaxScript(tagname, synfilename)22	unlet b:current_syntax23	let s:include = expand("<sfile>:p:h").'/'.a:synfilename24	if filereadable(s:include)25	    exe 'syn include @ant'.a:tagname.' '.s:include26	else27	    exe 'syn include @ant'.a:tagname." $VIMRUNTIME/syntax/".a:synfilename28	endif29 30	exe 'syn region ant'.a:tagname31		    \." start=#<script[^>]\\{-}language\\s*=\\s*['\"]".a:tagname."['\"]\\(>\\|[^>]*[^/>]>\\)#"32		    \.' end=#</script>#'33		    \.' fold'34		    \.' contains=@ant'.a:tagname.',xmlCdataStart,xmlCdataEnd,xmlTag,xmlEndTag'35		    \.' keepend'36	exe 'syn cluster xmlRegionHook add=ant'.a:tagname37    endfun38endif39 40" TODO: add more script languages here ?41call AntSyntaxScript('javascript', 'javascript.vim')42call AntSyntaxScript('jpython', 'python.vim')43 44 45syn cluster xmlTagHook add=antElement46 47syn keyword antElement WsdlToDotnet addfiles and ant antcall antstructure apply archives arg argument48syn keyword antElement assertions attrib attribute available basename bcc blgenclient bootclasspath49syn keyword antElement borland bottom buildnumber buildpath buildpathelement bunzip2 bzip2 cab50syn keyword antElement catalogpath cc cccheckin cccheckout cclock ccmcheckin ccmcheckintask ccmcheckout51syn keyword antElement ccmcreatetask ccmkattr ccmkbl ccmkdir ccmkelem ccmklabel ccmklbtype52syn keyword antElement ccmreconfigure ccrmtype ccuncheckout ccunlock ccupdate checksum chgrp chmod53syn keyword antElement chown classconstants classes classfileset classpath commandline comment54syn keyword antElement compilerarg compilerclasspath concat concatfilter condition copy copydir55syn keyword antElement copyfile coveragepath csc custom cvs cvschangelog cvspass cvstagdiff cvsversion56syn keyword antElement daemons date defaultexcludes define delete deletecharacters deltree depend57syn keyword antElement depends dependset depth description different dirname dirset disable dname58syn keyword antElement doclet doctitle dtd ear echo echoproperties ejbjar element enable entity entry59syn keyword antElement env equals escapeunicode exclude excludepackage excludesfile exec execon60syn keyword antElement existing expandproperties extdirs extension extensionSet extensionset factory61syn keyword antElement fail filelist filename filepath fileset filesmatch filetokenizer filter62syn keyword antElement filterchain filterreader filters filterset filtersfile fixcrlf footer format63syn keyword antElement from ftp generic genkey get gjdoc grant group gunzip gzip header headfilter http64syn keyword antElement ignoreblank ilasm ildasm import importtypelib include includesfile input iplanet65syn keyword antElement iplanet-ejbc isfalse isreference isset istrue jar jarlib-available66syn keyword antElement jarlib-manifest jarlib-resolve java javac javacc javadoc javadoc2 jboss jdepend67syn keyword antElement jjdoc jjtree jlink jonas jpcoverage jpcovmerge jpcovreport jsharpc jspc68syn keyword antElement junitreport jvmarg lib libfileset linetokenizer link loadfile loadproperties69syn keyword antElement location macrodef mail majority manifest map mapper marker mergefiles message70syn keyword antElement metainf method mimemail mkdir mmetrics modified move mparse none not options or71syn keyword antElement os outputproperty package packageset parallel param patch path pathconvert72syn keyword antElement pathelement patternset permissions prefixlines present presetdef project73syn keyword antElement property propertyfile propertyref propertyset pvcs pvcsproject record reference74syn keyword antElement regexp rename renameext replace replacefilter replaceregex replaceregexp75syn keyword antElement replacestring replacetoken replacetokens replacevalue replyto report resource76syn keyword antElement revoke rmic root rootfileset rpm scp section selector sequential serverdeploy77syn keyword antElement setproxy signjar size sleep socket soscheckin soscheckout sosget soslabel source78syn keyword antElement sourcepath sql src srcfile srcfilelist srcfiles srcfileset sshexec stcheckin79syn keyword antElement stcheckout stlabel stlist stringtokenizer stripjavacomments striplinebreaks80syn keyword antElement striplinecomments style subant substitution support symlink sync sysproperty81syn keyword antElement syspropertyset tabstospaces tag taglet tailfilter tar tarfileset target82syn keyword antElement targetfile targetfilelist targetfileset taskdef tempfile test testlet text title83syn keyword antElement to token tokenfilter touch transaction translate triggers trim tstamp type84syn keyword antElement typedef unjar untar unwar unzip uptodate url user vbc vssadd vsscheckin85syn keyword antElement vsscheckout vsscp vsscreate vssget vsshistory vsslabel waitfor war wasclasspath86syn keyword antElement webapp webinf weblogic weblogictoplink websphere whichresource wlclasspath87syn keyword antElement wljspc wsdltodotnet xmlcatalog xmlproperty xmlvalidate xslt zip zipfileset88syn keyword antElement zipgroupfileset89 90hi def link antElement Statement91 92let b:current_syntax = "ant"93 94let &cpo = s:ant_cpo_save95unlet s:ant_cpo_save96 97" vim: ts=898 
codekingpro/portable-devtools · Team Ai