home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / syntax / ant.vim < prev    next >
Encoding:
Text File  |  2003-05-20  |  5.0 KB  |  91 lines

  1. " Vim syntax file
  2. " Language:    ANT build file (xml)
  3. " Maintainer:    Johannes Zellner <johannes@zellner.org>
  4. " Last Change:    Tue, 20 May 2003 21:44:17 CEST
  5. " Filenames:    build.xml
  6. " $Id: ant.vim,v 1.5 2003/05/20 19:45:05 joze Exp $
  7.  
  8. " Quit when a syntax file was already loaded
  9. if exists("b:current_syntax")
  10.     finish
  11. endif
  12.  
  13. let s:ant_cpo_save = &cpo
  14. set cpo&vim
  15.  
  16. runtime! syntax/xml.vim
  17.  
  18. syn case ignore
  19.  
  20. if !exists('*AntSyntaxScript')
  21.     fun AntSyntaxScript(tagname, synfilename)
  22.     unlet b:current_syntax
  23.     let s:include = expand("<sfile>:p:h").'/'.a:synfilename
  24.     if filereadable(s:include)
  25.         exe 'syn include @ant'.a:tagname.' '.s:include
  26.     else
  27.         exe 'syn include @ant'.a:tagname." $VIMRUNTIME/syntax/".a:synfilename
  28.     endif
  29.  
  30.     exe 'syn region ant'.a:tagname
  31.             \." 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:tagname
  37.     endfun
  38. endif
  39.  
  40. " TODO: add more script languages here ?
  41. call AntSyntaxScript('javascript', 'javascript.vim')
  42. call AntSyntaxScript('jpython', 'python.vim')
  43.  
  44.  
  45. syn cluster xmlTagHook add=antElement
  46.  
  47. syn keyword antElement display WsdlToDotnet addfiles and ant antcall antlr antstructure apply archives arg
  48. syn keyword antElement display argument attribute available basename batchtest bcc blgenclient bootclasspath
  49. syn keyword antElement display borland bottom buildnumber bunzip2 bzip2 cab cc cccheckin cccheckout ccmcheckin
  50. syn keyword antElement display ccmcheckintask ccmcheckout ccmcreatetask ccmreconfigure ccuncheckout ccupdate
  51. syn keyword antElement display checksum chmod class classconstants classes classfileset classpath commandline
  52. syn keyword antElement display comment compilerarg compilerclasspath concat condition copy copydir copyfile
  53. syn keyword antElement display coveragepath csc custom cvs cvschangelog cvspass cvstagdiff date delete deltree
  54. syn keyword antElement display depend depends dependset depth description dirname dirset dname doclet doctitle
  55. syn keyword antElement display dtd ear echo echoproperties ejbjar entity entry env equals exclude
  56. syn keyword antElement display excludepackage excludesfile exec execon expandproperties extdirs extension
  57. syn keyword antElement display extensionSet extensionset fail filelist filename filepath fileset filesmatch
  58. syn keyword antElement display filter filterchain filterreader filters filterset filtersfile fixcrlf footer
  59. syn keyword antElement display format formatter from generic genkey get group gunzip gzip header headfilter
  60. syn keyword antElement display http ilasm include includesfile input iplanet iplanet-ejbc isfalse isset istrue
  61. syn keyword antElement display jar jarlib-available jarlib-manifest jarlib-resolve java javac javacc javadoc
  62. syn keyword antElement display javadoc2 javah jboss jjtree jlink jonas jpcoverage jpcovmerge jpcovreport jspc
  63. syn keyword antElement display junit junitreport jvmarg lib libfileset link loadfile loadproperties location
  64. syn keyword antElement display mail majority manifest map mapper marker maudit mergefiles message metainf
  65. syn keyword antElement display method mimemail mkdir mmetrics move mparse native2ascii none not options or os
  66. syn keyword antElement display outputproperty p4add p4change p4counter p4delete p4edit p4have p4label p4reopen
  67. syn keyword antElement display p4revert p4submit p4sync package packageset parallel param patch path
  68. syn keyword antElement display pathconvert pathelement patternset prefixlines present project property
  69. syn keyword antElement display propertyfile pvcs pvcsproject record reference regexp rename renameext replace
  70. syn keyword antElement display replacefilter replaceregexp replacetoken replacetokens replacevalue report rmic
  71. syn keyword antElement display root rootfileset rpm rulespath script searchpath section selector sequential
  72. syn keyword antElement display serverdeploy setproxy signjar size sleep socket soscheckin soscheckout sosget
  73. syn keyword antElement display soslabel sound source sourcepath splash sql src srcfile srcfilelist srcfiles
  74. syn keyword antElement display srcfileset stripjavacomments striplinebreaks striplinecomments style
  75. syn keyword antElement display substitution success support sysproperty tabstospaces tag taglet tailfilter tar
  76. syn keyword antElement display tarfileset target targetfile targetfilelist targetfileset taskdef tempfile test
  77. syn keyword antElement display testlet title to token touch transaction translate triggers tstamp typedef unjar
  78. syn keyword antElement display untar unwar unzip uptodate url user vssadd vsscheckin vsscheckout vsscp
  79. syn keyword antElement display vsscreate vssget vsshistory vsslabel waitfor war wasclasspath webapp webinf
  80. syn keyword antElement display weblogic weblogictoplink websphere wlclasspath wljspc wsdltodotnet xmlcatalog
  81. syn keyword antElement display xmlproperty xmlvalidate xslt zip zipfileset zipgroupfileset
  82.  
  83. hi def link antElement Statement
  84.  
  85. let b:current_syntax = "ant"
  86.  
  87. let &cpo = s:ant_cpo_save
  88. unlet s:ant_cpo_save
  89.  
  90. " vim: ts=8
  91.