summaryrefslogtreecommitdiffstats
path: root/kate/data/spice.xml
blob: 03b183acf0092710f7dd1abc0c2ad95d83e11f93 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">

<language name="Spice" section="Hardware" version="1.01" kateversion="2.3" extensions="*.sp;*.hsp" mimetype="text/spice" author="Steven Robson (s.a.robson@sms.ed.ac.uk) and Anders Lund" license="LGPL">
    <highlighting>  
          
        <contexts>
        
            <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
                <RegExpr attribute="Keyword" context="#stay" String="\B\.\w+" />
                <Int attribute="Number" context="#stay"/>
                <Float attribute="Number" context="#stay"/>
                <AnyChar attribute="Comment" String="$*" context="Commentar 1" />
                <DetectChar attribute="String" context="String" char="&quot;"/>
                <DetectChar attribute="String" context="String" char="'"/>
            </context>
            
            <context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>          
                                               
            <context attribute="String" lineEndContext="#pop" name="String">
                <LineContinue attribute="String" context="#stay"/>
                <HlCStringChar attribute="String Char" context="#stay"/>
                <DetectChar attribute="String" context="#pop" char="&quot;"/>
            </context>
            
            <context attribute="String" lineEndContext="#pop" name="String">
                <LineContinue attribute="String" context="#stay"/>
                <HlCStringChar attribute="String Char" context="#stay"/>
                <DetectChar attribute="String" context="#pop" char="'"/>
            </context>

        </contexts>

        <itemDatas>
                <itemData name="Normal Text"  defStyleNum="dsNormal"/>
                <itemData name="Keyword"      defStyleNum="dsKeyword"/>
                <itemData name="String"       defStyleNum="dsString"/>
                <itemData name="Comment"      defStyleNum="dsComment"/>
                <itemData name="Number"       defStyleNum="dsDecVal"/>
        </itemDatas>

    </highlighting>
    
    <general>
        <comments>
            <comment name="singleLine" start="*" />
        </comments>
        <keywords casesensitive="1" weakDeliminator="."/>
    </general>
</language>