7
|
1 " Vim syntax file
|
|
2 " Language: XSD (XML Schema)
|
|
3 " Maintainer: Johannes Zellner <johannes@zellner.org>
|
|
4 " Last Change: Tue, 27 Apr 2004 14:54:59 CEST
|
|
5 " Filenames: *.xsd
|
|
6 " $Id$
|
|
7
|
|
8 " REFERENCES:
|
|
9 " [1] http://www.w3.org/TR/xmlschema-0
|
|
10 "
|
|
11
|
|
12 " Quit when a syntax file was already loaded
|
|
13 if exists("b:current_syntax")
|
|
14 finish
|
|
15 endif
|
|
16
|
|
17 runtime syntax/xml.vim
|
|
18
|
|
19 syn cluster xmlTagHook add=xsdElement
|
|
20 syn case match
|
|
21
|
|
22 syn match xsdElement '\%(xsd:\)\@<=all'
|
|
23 syn match xsdElement '\%(xsd:\)\@<=annotation'
|
|
24 syn match xsdElement '\%(xsd:\)\@<=any'
|
|
25 syn match xsdElement '\%(xsd:\)\@<=anyAttribute'
|
|
26 syn match xsdElement '\%(xsd:\)\@<=appInfo'
|
|
27 syn match xsdElement '\%(xsd:\)\@<=attribute'
|
|
28 syn match xsdElement '\%(xsd:\)\@<=attributeGroup'
|
|
29 syn match xsdElement '\%(xsd:\)\@<=choice'
|
|
30 syn match xsdElement '\%(xsd:\)\@<=complexContent'
|
|
31 syn match xsdElement '\%(xsd:\)\@<=complexType'
|
|
32 syn match xsdElement '\%(xsd:\)\@<=documentation'
|
|
33 syn match xsdElement '\%(xsd:\)\@<=element'
|
|
34 syn match xsdElement '\%(xsd:\)\@<=enumeration'
|
|
35 syn match xsdElement '\%(xsd:\)\@<=extension'
|
|
36 syn match xsdElement '\%(xsd:\)\@<=field'
|
|
37 syn match xsdElement '\%(xsd:\)\@<=group'
|
|
38 syn match xsdElement '\%(xsd:\)\@<=import'
|
|
39 syn match xsdElement '\%(xsd:\)\@<=include'
|
|
40 syn match xsdElement '\%(xsd:\)\@<=key'
|
|
41 syn match xsdElement '\%(xsd:\)\@<=keyref'
|
|
42 syn match xsdElement '\%(xsd:\)\@<=length'
|
|
43 syn match xsdElement '\%(xsd:\)\@<=list'
|
|
44 syn match xsdElement '\%(xsd:\)\@<=maxInclusive'
|
|
45 syn match xsdElement '\%(xsd:\)\@<=maxLength'
|
|
46 syn match xsdElement '\%(xsd:\)\@<=minInclusive'
|
|
47 syn match xsdElement '\%(xsd:\)\@<=minLength'
|
|
48 syn match xsdElement '\%(xsd:\)\@<=pattern'
|
|
49 syn match xsdElement '\%(xsd:\)\@<=redefine'
|
|
50 syn match xsdElement '\%(xsd:\)\@<=restriction'
|
|
51 syn match xsdElement '\%(xsd:\)\@<=schema'
|
|
52 syn match xsdElement '\%(xsd:\)\@<=selector'
|
|
53 syn match xsdElement '\%(xsd:\)\@<=sequence'
|
|
54 syn match xsdElement '\%(xsd:\)\@<=simpleContent'
|
|
55 syn match xsdElement '\%(xsd:\)\@<=simpleType'
|
|
56 syn match xsdElement '\%(xsd:\)\@<=union'
|
|
57 syn match xsdElement '\%(xsd:\)\@<=unique'
|
|
58
|
|
59 hi def link xsdElement Statement
|
|
60
|
|
61 " vim: ts=8
|