File: retro.xml

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (103 lines) | stat: -rw-r--r-- 5,526 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE language []>

<!--
  This file is part of KDE's kate project.

  Copyright 2021 Carson Black (uhhadd@gmail.com)
  -->

<language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="language.xsd" name="RETRO" section="Sources" extensions="*.retro" version="1" kateversion="5.0" license="MIT">
    <highlighting>
        <contexts>
            <context name="normal" attribute="not-code" lineEndContext="#stay">
                <StringDetect String="~~~" attribute="delimter" context="code" firstNonSpace="true" />
                <StringDetect String="```" attribute="delimter" context="test" firstNonSpace="true" />
            </context>
            <context name="code" attribute="code" lineEndContext="#stay">
                <StringDetect String="~~~" attribute="delimter" context="#pop" firstNonSpace="true" />

                <DetectChar char=":" context="ctx-colon" attribute="colon" />
                <DetectChar char="(" context="ctx-note" attribute="note" />
                <DetectChar char="'" context="ctx-str" attribute="str" />
                <DetectChar char="#" context="ctx-num" attribute="num" />
                <DetectChar char="." context="ctx-fnum" attribute="fnum" />
                <DetectChar char="&amp;" context="ctx-ptr" attribute="ptr" />
                <DetectChar char="$" context="ctx-char" attribute="char" />
                <AnyChar String="`\\" context="ctx-inst" attribute="inst" />
                <DetectChar char="|" context="ctx-defer" attribute="defer" />
                <DetectChar char="@" context="ctx-fetch" attribute="fetch" />
                <DetectChar char="!" context="ctx-store" attribute="store" />
            </context>
            <context name="test" attribute="code" lineEndContext="#stay">
                <StringDetect String="```" attribute="delimter" context="#pop" firstNonSpace="true" />

                <DetectChar char=":" context="ctx-colon" attribute="colon" />
                <DetectChar char="(" context="ctx-note" attribute="note" />
                <DetectChar char="'" context="ctx-str" attribute="str" />
                <DetectChar char="#" context="ctx-num" attribute="num" />
                <DetectChar char="." context="ctx-fnum" attribute="fnum" />
                <DetectChar char="&amp;" context="ctx-ptr" attribute="ptr" />
                <DetectChar char="$" context="ctx-char" attribute="char" />
                <AnyChar String="`\\" context="ctx-inst" attribute="inst" />
                <DetectChar char="|" context="ctx-defer" attribute="defer" />
                <DetectChar char="@" context="ctx-fetch" attribute="fetch" />
                <DetectChar char="!" context="ctx-store" attribute="store" />
            </context>
            <context name="ctx-colon" attribute="colon" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-note" attribute="note" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-str" attribute="str" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
                <DetectChar char="_" attribute="note"/>
            </context>
            <context name="ctx-num" attribute="num" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-fnum" attribute="fnum" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-ptr" attribute="ptr" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-char" attribute="char" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-inst" attribute="inst" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-defer" attribute="defer" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-fetch" attribute="fetch" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
            <context name="ctx-store" attribute="store" lineEndContext="#pop">
                <DetectChar char=" " context="#pop"/>
            </context>
        </contexts>
        <itemDatas>
            <itemData name="not-code" defStyleNum="dsComment" />

            <itemData name="code" defStyleNum="dsFunction" />

            <itemData name="delimter" defStyleNum="dsPreprocessor" />

            <itemData name="colon" defStyleNum="dsFunction" />
            <itemData name="note" defStyleNum="dsComment" />
            <itemData name="str" defStyleNum="dsString" />
            <itemData name="num" defStyleNum="dsDataType" />
            <itemData name="fnum" defStyleNum="dsFloat" />
            <itemData name="ptr" defStyleNum="dsNormal" />
            <itemData name="char" defStyleNum="dsChar" />
            <itemData name="inst" defStyleNum="dsFunction" />
            <itemData name="defer" defStyleNum="dsFunction" />
            <itemData name="fetch" defStyleNum="dsVariable" />
            <itemData name="store" defStyleNum="dsVariable" />
        </itemDatas>
    </highlighting>
</language>