summaryrefslogtreecommitdiffstats
path: root/kate/data/debiancontrol.xml
blob: 8c34c64ca482a521c6eb259ae8b0220f75a018d2 (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="Debian Control" version="0.84" kateversion="2.4" section="Other" extensions="control" mimetype="">
    <highlighting>
        <contexts>
            <context attribute="Normal Text" lineEndContext="#stay" name="INIT">
                <StringDetect attribute="Keyword" context="DependencyField" String="Depends:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Recommends:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Suggests:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Conflicts:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Provides:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Replaces:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Enhances:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Pre-Depends:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Depends:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Depends-Indep:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Conflicts:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Build-Conflicts-Indep:"/>
                <StringDetect attribute="Keyword" context="DependencyField" String="Breaks:"/>
                <RegExpr attribute="Keyword" context="Field" minimal="true" String="[^ ]*:" column="0"/>
                <DetectChar attribute="Value" context="Field" char=" " column="0"/>
            </context>

            <context attribute="Value" lineEndContext="#pop" name="Field">
                <RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;" minimal="true"/>
                <Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>
            </context>

            <context attribute="Variable" lineEndContext="#pop" name="Variable">
                <DetectChar attribute="Keyword" context="#pop" char="}"/>
            </context>

            <context attribute="Value" lineEndContext="#pop" name="DependencyField">
                <RegExpr attribute="Email" context="#stay" String="&lt;.*@.*&gt;" minimal="true"/>
                <Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>
                <RegExpr attribute="Keyword" context="#stay" String="[,\|]"/>
                <DetectChar attribute="Keyword" context="Constrain" char="("/>
                <DetectChar attribute="Keyword" context="Constrain" char="["/>
            </context>

            <context attribute="Version" lineEndContext="#stay" name="Constrain">
                <Detect2Chars attribute="Keyword" context="Variable" char="$" char1="{"/>
                <RegExpr attribute="Keyword" context="#stay" String="[!&lt;=&gt;]"/>
                <DetectChar attribute="Keyword" context="#pop" char=")"/>
                <DetectChar attribute="Keyword" context="#pop" char="]"/>
            </context>
        </contexts>

        <itemDatas>
            <itemData name="Normal Text" defStyleNum="dsNormal"/>
            <itemData name="Keyword"  defStyleNum="dsKeyword"/>
            <itemData name="Version"  defStyleNum="dsDecVal"/>
            <itemData name="Value"  defStyleNum="dsDataType"/>
            <itemData name="Variable" defStyleNum="dsOthers"/>
            <itemData name="Email" defStyleNum="dsOthers"/>
        </itemDatas>
    </highlighting>

    <general>
        <comments>
            <comment name="singleLine" start="#"/>
        </comments>
        <keywords casesensitive="1" />
    </general>
</language>