| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<!DOCTYPE language []> |
| 4 |
|
| 5 |
<!-- |
| 6 |
This file is part of KDE's kate project. |
| 7 |
|
| 8 |
Copyright 2021 Carson Black ([email protected]) |
| 9 |
--> |
| 10 |
|
| 11 |
<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"> |
| 12 |
<highlighting> |
| 13 |
<contexts> |
| 14 |
<context name="normal" attribute="not-code" lineEndContext="#stay"> |
| 15 |
<StringDetect String="~~~" attribute="delimter" context="code" firstNonSpace="true" /> |
| 16 |
<StringDetect String="```" attribute="delimter" context="test" firstNonSpace="true" /> |
| 17 |
</context> |
| 18 |
<context name="code" attribute="code" lineEndContext="#stay"> |
| 19 |
<StringDetect String="~~~" attribute="delimter" context="#pop" firstNonSpace="true" /> |
| 20 |
|
| 21 |
<DetectChar char=":" context="ctx-colon" attribute="colon" /> |
| 22 |
<DetectChar char="(" context="ctx-note" attribute="note" /> |
| 23 |
<DetectChar char="'" context="ctx-str" attribute="str" /> |
| 24 |
<DetectChar char="#" context="ctx-num" attribute="num" /> |
| 25 |
<DetectChar char="." context="ctx-fnum" attribute="fnum" /> |
| 26 |
<DetectChar char="&" context="ctx-ptr" attribute="ptr" /> |
| 27 |
<DetectChar char="$" context="ctx-char" attribute="char" /> |
| 28 |
<AnyChar String="`\\" context="ctx-inst" attribute="inst" /> |
| 29 |
<DetectChar char="|" context="ctx-defer" attribute="defer" /> |
| 30 |
<DetectChar char="@" context="ctx-fetch" attribute="fetch" /> |
| 31 |
<DetectChar char="!" context="ctx-store" attribute="store" /> |
| 32 |
</context> |
| 33 |
<context name="test" attribute="code" lineEndContext="#stay"> |
| 34 |
<StringDetect String="```" attribute="delimter" context="#pop" firstNonSpace="true" /> |
| 35 |
|
| 36 |
<DetectChar char=":" context="ctx-colon" attribute="colon" /> |
| 37 |
<DetectChar char="(" context="ctx-note" attribute="note" /> |
| 38 |
<DetectChar char="'" context="ctx-str" attribute="str" /> |
| 39 |
<DetectChar char="#" context="ctx-num" attribute="num" /> |
| 40 |
<DetectChar char="." context="ctx-fnum" attribute="fnum" /> |
| 41 |
<DetectChar char="&" context="ctx-ptr" attribute="ptr" /> |
| 42 |
<DetectChar char="$" context="ctx-char" attribute="char" /> |
| 43 |
<AnyChar String="`\\" context="ctx-inst" attribute="inst" /> |
| 44 |
<DetectChar char="|" context="ctx-defer" attribute="defer" /> |
| 45 |
<DetectChar char="@" context="ctx-fetch" attribute="fetch" /> |
| 46 |
<DetectChar char="!" context="ctx-store" attribute="store" /> |
| 47 |
</context> |
| 48 |
<context name="ctx-colon" attribute="colon" lineEndContext="#pop"> |
| 49 |
<DetectChar char=" " context="#pop"/> |
| 50 |
</context> |
| 51 |
<context name="ctx-note" attribute="note" lineEndContext="#pop"> |
| 52 |
<DetectChar char=" " context="#pop"/> |
| 53 |
</context> |
| 54 |
<context name="ctx-str" attribute="str" lineEndContext="#pop"> |
| 55 |
<DetectChar char=" " context="#pop"/> |
| 56 |
<DetectChar char="_" attribute="note"/> |
| 57 |
</context> |
| 58 |
<context name="ctx-num" attribute="num" lineEndContext="#pop"> |
| 59 |
<DetectChar char=" " context="#pop"/> |
| 60 |
</context> |
| 61 |
<context name="ctx-fnum" attribute="fnum" lineEndContext="#pop"> |
| 62 |
<DetectChar char=" " context="#pop"/> |
| 63 |
</context> |
| 64 |
<context name="ctx-ptr" attribute="ptr" lineEndContext="#pop"> |
| 65 |
<DetectChar char=" " context="#pop"/> |
| 66 |
</context> |
| 67 |
<context name="ctx-char" attribute="char" lineEndContext="#pop"> |
| 68 |
<DetectChar char=" " context="#pop"/> |
| 69 |
</context> |
| 70 |
<context name="ctx-inst" attribute="inst" lineEndContext="#pop"> |
| 71 |
<DetectChar char=" " context="#pop"/> |
| 72 |
</context> |
| 73 |
<context name="ctx-defer" attribute="defer" lineEndContext="#pop"> |
| 74 |
<DetectChar char=" " context="#pop"/> |
| 75 |
</context> |
| 76 |
<context name="ctx-fetch" attribute="fetch" lineEndContext="#pop"> |
| 77 |
<DetectChar char=" " context="#pop"/> |
| 78 |
</context> |
| 79 |
<context name="ctx-store" attribute="store" lineEndContext="#pop"> |
| 80 |
<DetectChar char=" " context="#pop"/> |
| 81 |
</context> |
| 82 |
</contexts> |
| 83 |
<itemDatas> |
| 84 |
<itemData name="not-code" defStyleNum="dsComment" /> |
| 85 |
|
| 86 |
<itemData name="code" defStyleNum="dsFunction" /> |
| 87 |
|
| 88 |
<itemData name="delimter" defStyleNum="dsPreprocessor" /> |
| 89 |
|
| 90 |
<itemData name="colon" defStyleNum="dsFunction" /> |
| 91 |
<itemData name="note" defStyleNum="dsComment" /> |
| 92 |
<itemData name="str" defStyleNum="dsString" /> |
| 93 |
<itemData name="num" defStyleNum="dsDataType" /> |
| 94 |
<itemData name="fnum" defStyleNum="dsFloat" /> |
| 95 |
<itemData name="ptr" defStyleNum="dsNormal" /> |
| 96 |
<itemData name="char" defStyleNum="dsChar" /> |
| 97 |
<itemData name="inst" defStyleNum="dsFunction" /> |
| 98 |
<itemData name="defer" defStyleNum="dsFunction" /> |
| 99 |
<itemData name="fetch" defStyleNum="dsVariable" /> |
| 100 |
<itemData name="store" defStyleNum="dsVariable" /> |
| 101 |
</itemDatas> |
| 102 |
</highlighting> |
| 103 |
</language> |