blob: 5b0e66389355e63d5a0403f24566496f3aa34274 (
plain)
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
160
161
162
163
164
165
166
167
168
169
170
171
172
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Adapted from the VIM highlighter, by Markus Mottl ([email protected]) -->
<language name="dot" version="1.1" kateversion="2.4" section="Scientific" extensions="*.dot" mimetype="text/x-dot" author="Postula Loïs ([email protected])" priority="0">
<highlighting>
<list name="keywords">
<item> digraph </item>
<item> node </item>
<item> edge </item>
<item> subgraph </item>
</list>
<list name="attributes">
<!-- Graph attributes -->
<item> center </item>
<item> layers </item>
<item> margin </item>
<item> mclimit </item>
<item> name </item>
<item> nodesep </item>
<item> nslimit </item>
<item> ordering </item>
<item> page </item>
<item> pagedir </item>
<item> rank </item>
<item> rankdir </item>
<item> ranksep </item>
<item> ratio </item>
<item> rotate </item>
<item> size </item>
<!-- Node attributes -->
<item> distortion </item>
<item> fillcolor </item>
<item> fontcolor </item>
<item> fontname </item>
<item> fontsize </item>
<item> height </item>
<item> layer </item>
<item> orientation </item>
<item> peripheries </item>
<item> regular </item>
<item> shape </item>
<item> shapefile </item>
<item> sides </item>
<item> skew </item>
<item> width</item>
<!-- Edge attributes -->
<item> arrowhead </item>
<item> arrowsize </item>
<item> arrowtail </item>
<item> constraint </item>
<item> decorateP </item>
<item> dir </item>
<item> headclip </item>
<item> headlabel </item>
<item> labelangle </item>
<item> labeldistance </item>
<item> labelfontcolor </item>
<item> labelfontname </item>
<item> labelfontsize </item>
<item> minlen </item>
<item> port_label_distance </item>
<item> samehead </item>
<item> sametail </item>
<item> tailclip </item>
<item> taillabel </item>
<item> weight </item>
<!-- Shared attributes (graphs, nodes, edges) -->
<item> color </item>
<!-- Shared attributes (graphs and edges) -->
<item> bgcolor </item>
<item> label </item>
<item> URL </item>
<!-- Shared attributes (nodes and edges) -->
<item> fontcolor </item>
<item> fontname </item>
<item> fontsize </item>
<item> layer </item>
<item> style </item>
</list>
<contexts>
<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
<IncludeRules context="DetectAll"/>
</context>
<!-- detector contexts -->
<context attribute="Normal Text" lineEndContext="#stay" name="DetectAll">
<keyword attribute="Keyword" context="#stay" String="keywords"/>
<keyword attribute="Attribute" context="#stay" String="attributes"/>
<DetectChar attribute="String" context="String" char="""/>
<AnyChar attribute="Symbol" context="#stay" String=";="/>
<Detect2Chars attribute="Symbol" context="#stay" char="-" char1=">"/>
<Float attribute="Number" context="#stay"/>
<Int attribute="Number" context="#stay"/>
<RegExpr attribute="Identifier" context="#stay" String="\b\w+\b"/>
<IncludeRules context="DetectComments"/>
<DetectChar attribute="Symbol" context="RegionCurly" char="{" beginRegion="curly"/>
<DetectChar attribute="Symbol" context="RegionSquare" char="[" beginRegion="square"/>
<DetectChar attribute="Symbol" context="RegionParen" char="(" beginRegion="paren"/>
<AnyChar attribute="Error" context="#stay" String=")]}"/>
</context>
<context attribute="Normal Text" lineEndContext="#stay" name="DetectComments">
<Detect2Chars attribute="Comment" context="CommentSL" char="/" char1="/"/>
<Detect2Chars attribute="Comment" context="CommentML" char="/" char1="*" beginRegion="Comment"/>
</context>
<!-- region contexts -->
<context attribute="Comment" lineEndContext="#stay" name="RegionCurly">
<DetectChar attribute="Symbol" context="#pop" char="}" endRegion="curly"/>
<IncludeRules context="DetectAll"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="RegionSquare">
<DetectChar attribute="Symbol" context="#pop" char="]" endRegion="square"/>
<IncludeRules context="DetectAll"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="RegionParen">
<DetectChar attribute="Symbol" context="#pop" char=")" endRegion="paren"/>
<IncludeRules context="DetectAll"/>
</context>
<!-- other contexts -->
<context attribute="String" lineEndContext="#pop" name="String">
<Detect2Chars attribute="String Char" context="#stay" char="\\" char1="\\"/>
<Detect2Chars attribute="String Char" context="#stay" char="\\" char1="""/>
<DetectChar attribute="String" context="#pop" char="""/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="CommentSL">
<IncludeRules context="##Alerts"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="CommentML">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts"/>
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword"/>
<itemData name="Attribute" defStyleNum="dsDataType"/>
<itemData name="Symbol" defStyleNum="dsOthers"/>
<itemData name="Number" defStyleNum="dsDecVal"/>
<itemData name="Identifier" defStyleNum="dsFunction"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Error" defStyleNum="dsError"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="//"/>
<comment name="multiLine" start="/*" end="*/"/>
</comments>
<keywords casesensitive="1"/>
</general>
</language>
|