-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanguage.xsd
160 lines (136 loc) · 6.13 KB
/
language.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?xml version="1.0" encoding="UTF-8"?>
<!--
* LibreOffice extension for syntax highlighting
* Copyright (C) 2008 Cédric Bosdonnat [email protected]
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation;
* version 2 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-->
<xsd:schema targetNamespace="http://cedric.bosdonnat.free.fr/coooder/language/" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://cedric.bosdonnat.free.fr/coooder/language/">
<xsd:complexType name="LanguageType">
<xsd:sequence>
<xsd:element name="objectSplitters" type="SplittersType"
minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="comments" type="CommentsType"></xsd:element>
<xsd:element name="symbols" type="SetType"></xsd:element>
<xsd:element name="quotemarks" type="ValuesType"></xsd:element>
<xsd:element name="hardquotes" type="ValuesType"
minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="hardquoteEscapes" type="ValuesType"
minOccurs="0" maxOccurs="1">
</xsd:element>
<xsd:element name="keywords" type="SetType"></xsd:element>
<xsd:element name="regexps" type="RegexpsType"></xsd:element>
<xsd:element name="styles" type="StylesType"></xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="escapeChar" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="objectOriented" type="xsd:boolean" use="required"></xsd:attribute>
</xsd:complexType>
<xsd:element name="language" type="LanguageType"></xsd:element>
<xsd:complexType name="CommentType" abstract="true">
<xsd:sequence>
<xsd:element name="opening" type="xsd:string" minOccurs="1" maxOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SingleCommentType">
<xsd:complexContent>
<xsd:extension base="CommentType">
<xsd:attribute name="id" type="xsd:ID"></xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="MultipleCommentType">
<xsd:complexContent>
<xsd:extension base="CommentType">
<xsd:sequence>
<xsd:element name="closing" type="xsd:string" minOccurs="1" maxOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CommentsType">
<xsd:sequence>
<xsd:element name="single" type="SingleCommentType"
minOccurs="0" maxOccurs="unbounded">
</xsd:element>
<xsd:element name="multiple" type="MultipleCommentType"
minOccurs="0" maxOccurs="unbounded">
</xsd:element>
</xsd:sequence>
<xsd:attribute name="caseSensitive" type="xsd:boolean" use="optional" default="true"></xsd:attribute>
</xsd:complexType>
<xsd:complexType name="ValuesType">
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SplittersType">
<xsd:sequence>
<xsd:element name="splitter" type="SplitterType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SplitterType">
<xsd:attribute name="value" type="xsd:string"></xsd:attribute>
<xsd:attribute name="id" type="xsd:ID"></xsd:attribute>
</xsd:complexType>
<xsd:complexType name="SetType">
<xsd:sequence>
<xsd:element name="set" type="SetElementsType" minOccurs="1" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SetElementsType">
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="1" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"></xsd:attribute>
<xsd:attribute name="caseSensitive" type="xsd:boolean" default="true" use="optional"></xsd:attribute>
</xsd:complexType>
<xsd:complexType name="RegexpsType">
<xsd:sequence>
<xsd:element name="regexp" type="RegexpType" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RegexpType">
<xsd:attribute name="id" type="xsd:ID"></xsd:attribute>
<xsd:attribute name="value" type="xsd:string"></xsd:attribute>
</xsd:complexType>
<xsd:complexType name="StylesType">
<xsd:sequence>
<xsd:element name="style" type="StyleType" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="IdStyleType">
<xsd:union memberTypes="xsd:IDREF ">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="comment_multi" />
<xsd:enumeration value="string" />
<xsd:enumeration value="escaped" />
<xsd:enumeration value="number" />
<xsd:enumeration value="symbol" />
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:complexType name="StyleType">
<xsd:attribute name="element" type="IdStyleType"></xsd:attribute>
<xsd:attribute name="color" type="xsd:string"></xsd:attribute>
<xsd:attribute name="bold" type="xsd:boolean" use="optional" default="false"></xsd:attribute>
<xsd:attribute name="italic" type="xsd:boolean" use="optional" default="false"></xsd:attribute>
</xsd:complexType>
</xsd:schema>