summaryrefslogtreecommitdiffstats
path: root/kate/data/git-ignore.xml
blob: ab4a7841bdaa396a05780fe8b6c3f1c75541f627 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Git Ignore" version="0.1" kateversion="2.4" section="Configuration"  extensions=".gitignore*;" mimetype="text/x-git-ignore" license="LGPL">
    <highlighting>
        <contexts>
           
            <context name="ini" attribute="Normal Text" lineEndContext="#pop">
                <DetectChar char="#" attribute="Comment" context="Comment" />
                <RegExpr attribute="Include" String="^!.*" context="Include"/>
                <RegExpr attribute="Exclude" String=".*"  context="Exclude" />
            </context>
            
            <context name="Comment" attribute="Comment" lineEndContext="#pop">
                <DetectSpaces />
            </context>                                                                                          
        
            <context name="Include" attribute="Include" lineEndContext="#pop">
            </context>

            <context name="Exclude" attribute="Exclude" lineEndContext="#pop">
            </context>
        
        </contexts>
        
        <itemDatas>
            <itemData name="Comment" defStyleNum="dsComment" />
            <itemData name="Exclude" defStyleNum="dsString" />
            <itemData name="Include" defStyleNum="dsChar" />
        </itemDatas>
    
    </highlighting>

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