blob: 8ea88556b85c8a52e4d8a142ad74f23ff402a03b (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="x.org Configuration" section="Configuration" extensions="xorg.conf" mimetype="" version="2" kateversion="2.4" author="Jan Janssen ([email protected])" license="LGPL">
<highlighting>
<contexts>
<context name="xorg" attribute="Normal Text" lineEndContext="#stay">
<StringDetect String="Section" attribute="Section" context="Section" beginRegion="Section" insensitive="true" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Section" attribute="Normal Text" lineEndContext="#stay">
<RangeDetect char=""" char1=""" attribute="Section Name" context="Section Content" />
<RangeDetect char="'" char1="'" attribute="Section Name" context="Section Content" />
<DetectIdentifier attribute="Alert" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Section Content" attribute="Normal Text" lineEndContext="#stay">
<StringDetect String="EndSection" attribute="Section" context="#pop#pop" endRegion="Section" insensitive="true" />
<StringDetect String="EndSubSection" attribute="Section" context="#pop#pop" endRegion="SubSection" insensitive="true" />
<StringDetect String="SubSection" attribute="Section" context="Section" beginRegion="SubSection" insensitive="true" />
<RegExpr String="\b\w+\b" context="Keyword" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Keyword" attribute="Keyword" lineEndContext="#pop">
<RangeDetect attribute="Value" char=""" char1=""" />
<RangeDetect attribute="Value" char="'" char1="'" />
<Float attribute="Float" />
<Int attribute="Int" />
<RegExpr attribute="Value2" String="[\w\d]+" />
<DetectChar char="#" context="Comment" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Section" defStyleNum="dsFunction" />
<itemData name="Section Name" defStyleNum="dsString" />
<itemData name="Value" defStyleNum="dsDataType" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Alert" defStyleNum="dsError" />
<itemData name="Int" defStyleNum="dsDecVal" />
<itemData name="Value2" defStyleNum="dsOthers" />
<itemData name="Float" defStyleNum="dsFloat" />
<itemData name="Comment" defStyleNum="dsComment" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" />
</comments>
</general>
</language>
|