-
Notifications
You must be signed in to change notification settings - Fork 0
/
language.dtd
72 lines (57 loc) · 2.29 KB
/
language.dtd
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
<!--
This file is part of GtkSourceView
Copyright (C) 2006 Paolo Maggi <[email protected]>
Copyright (C) 2006 Leonardo Ferreira Fontenelle <[email protected]>
gtksourceview is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
gtksourceview 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, see <http://www.gnu.org/licenses/>.
-->
<!-- FIXME: the "name" attribute can be "_name" to be marked for translation -->
<!ENTITY % itemattrs
"name CDATA #REQUIRED
style CDATA #REQUIRED">
<!ELEMENT language (escape-char?,(line-comment|block-comment|string|syntax-item|pattern-item|keyword-list)+)>
<!-- FIXME: the "name" and "section" attributes can be prefixed with
"_" to be marked for translation -->
<!ATTLIST language
name CDATA #REQUIRED
version CDATA #REQUIRED
section CDATA #REQUIRED
translation-domain CDATA #IMPLIED
mimetypes CDATA #REQUIRED>
<!ELEMENT escape-char (#PCDATA)>
<!ELEMENT line-comment (start-regex)>
<!ATTLIST line-comment
%itemattrs;>
<!ELEMENT block-comment (start-regex,end-regex)>
<!ATTLIST block-comment
%itemattrs;>
<!ELEMENT string (start-regex,end-regex)>
<!ATTLIST string
%itemattrs;
end-at-line-end (true|false) "true">
<!ELEMENT syntax-item (start-regex,end-regex)>
<!ATTLIST syntax-item
%itemattrs;>
<!ELEMENT pattern-item (regex)>
<!ATTLIST pattern-item
%itemattrs;>
<!ELEMENT keyword-list (keyword+)>
<!ATTLIST keyword-list
%itemattrs;
case-sensitive (true|false) "true"
match-empty-string-at-beginning (true|false) "false"
match-empty-string-at-end (true|false) "false"
beginning-regex CDATA #IMPLIED
end-regex CDATA #IMPLIED>
<!ELEMENT start-regex (#PCDATA)>
<!ELEMENT end-regex (#PCDATA)>
<!ELEMENT regex (#PCDATA)>
<!ELEMENT keyword (#PCDATA)>