Mercurial > vim
annotate runtime/syntax/ant.vim @ 34591:19caff944d87 v9.1.0188
patch 9.1.0188: filetype: no support for Vento files
Commit: https://github.com/vim/vim/commit/9f26e5a9bcedb3caef26e9d77849ea37a3626bbf
Author: wrapperup <wrapperup4@gmail.com>
Date: Tue Mar 19 18:06:22 2024 +0100
patch 9.1.0188: filetype: no support for Vento files
Problem: Vento files are not recognized.
Solution: Recognize *.vto files as filetype "vento" (wrapperup)
Vento is a templating engine https://vento.js.org/
closes: #14229
Signed-off-by: wrapperup <wrapperup4@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Mar 2024 18:15:07 +0100 |
parents | aced7e335fea |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
34226
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
2 " Language: ANT build file (xml) |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
4 " Previous Maintainer: Johannes Zellner <johannes@zellner.org> |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
5 " Last Change: 2024 Jan 27 |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
6 " Filenames: build.xml |
7 | 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 | |
34226
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
47 syn keyword antElement WsdlToDotnet addfiles and ant antcall antstructure apply archives arg argument |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
48 syn keyword antElement assertions attrib attribute available basename bcc blgenclient bootclasspath |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
49 syn keyword antElement borland bottom buildnumber buildpath buildpathelement bunzip2 bzip2 cab |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
50 syn keyword antElement catalogpath cc cccheckin cccheckout cclock ccmcheckin ccmcheckintask ccmcheckout |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
51 syn keyword antElement ccmcreatetask ccmkattr ccmkbl ccmkdir ccmkelem ccmklabel ccmklbtype |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
52 syn keyword antElement ccmreconfigure ccrmtype ccuncheckout ccunlock ccupdate checksum chgrp chmod |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
53 syn keyword antElement chown classconstants classes classfileset classpath commandline comment |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
54 syn keyword antElement compilerarg compilerclasspath concat concatfilter condition copy copydir |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
55 syn keyword antElement copyfile coveragepath csc custom cvs cvschangelog cvspass cvstagdiff cvsversion |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
56 syn keyword antElement daemons date defaultexcludes define delete deletecharacters deltree depend |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
57 syn keyword antElement depends dependset depth description different dirname dirset disable dname |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
58 syn keyword antElement doclet doctitle dtd ear echo echoproperties ejbjar element enable entity entry |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
59 syn keyword antElement env equals escapeunicode exclude excludepackage excludesfile exec execon |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
60 syn keyword antElement existing expandproperties extdirs extension extensionSet extensionset factory |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
61 syn keyword antElement fail filelist filename filepath fileset filesmatch filetokenizer filter |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
62 syn keyword antElement filterchain filterreader filters filterset filtersfile fixcrlf footer format |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
63 syn keyword antElement from ftp generic genkey get gjdoc grant group gunzip gzip header headfilter http |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
64 syn keyword antElement ignoreblank ilasm ildasm import importtypelib include includesfile input iplanet |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
65 syn keyword antElement iplanet-ejbc isfalse isreference isset istrue jar jarlib-available |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
66 syn keyword antElement jarlib-manifest jarlib-resolve java javac javacc javadoc javadoc2 jboss jdepend |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
67 syn keyword antElement jjdoc jjtree jlink jonas jpcoverage jpcovmerge jpcovreport jsharpc jspc |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
68 syn keyword antElement junitreport jvmarg lib libfileset linetokenizer link loadfile loadproperties |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
69 syn keyword antElement location macrodef mail majority manifest map mapper marker mergefiles message |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
70 syn keyword antElement metainf method mimemail mkdir mmetrics modified move mparse none not options or |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
71 syn keyword antElement os outputproperty package packageset parallel param patch path pathconvert |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
72 syn keyword antElement pathelement patternset permissions prefixlines present presetdef project |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
73 syn keyword antElement property propertyfile propertyref propertyset pvcs pvcsproject record reference |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
74 syn keyword antElement regexp rename renameext replace replacefilter replaceregex replaceregexp |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
75 syn keyword antElement replacestring replacetoken replacetokens replacevalue replyto report resource |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
76 syn keyword antElement revoke rmic root rootfileset rpm scp section selector sequential serverdeploy |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
77 syn keyword antElement setproxy signjar size sleep socket soscheckin soscheckout sosget soslabel source |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
78 syn keyword antElement sourcepath sql src srcfile srcfilelist srcfiles srcfileset sshexec stcheckin |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
79 syn keyword antElement stcheckout stlabel stlist stringtokenizer stripjavacomments striplinebreaks |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
80 syn keyword antElement striplinecomments style subant substitution support symlink sync sysproperty |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
81 syn keyword antElement syspropertyset tabstospaces tag taglet tailfilter tar tarfileset target |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
82 syn keyword antElement targetfile targetfilelist targetfileset taskdef tempfile test testlet text title |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
83 syn keyword antElement to token tokenfilter touch transaction translate triggers trim tstamp type |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
84 syn keyword antElement typedef unjar untar unwar unzip uptodate url user vbc vssadd vsscheckin |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
85 syn keyword antElement vsscheckout vsscp vsscreate vssget vsshistory vsslabel waitfor war wasclasspath |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
86 syn keyword antElement webapp webinf weblogic weblogictoplink websphere whichresource wlclasspath |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
87 syn keyword antElement wljspc wsdltodotnet xmlcatalog xmlproperty xmlvalidate xslt zip zipfileset |
aced7e335fea
runtime(ant): Update syntax file (#13926)
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
88 syn keyword antElement zipgroupfileset |
7 | 89 |
90 hi def link antElement Statement | |
91 | |
92 let b:current_syntax = "ant" | |
93 | |
94 let &cpo = s:ant_cpo_save | |
95 unlet s:ant_cpo_save | |
96 | |
97 " vim: ts=8 |