summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/desktop.xml
blob: 3c1f6e3d6a793c9bd3d04a01a63c3c72e652cb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name=".desktop" section="Other" extensions="*.desktop;*.kdelnk" mimetype="application/x-desktop">
  <highlighting>
    <contexts>
      <context attribute="2" lineEndContext="#stay" name="Normal">
        <RegExpr String="^\[.*\]$" attribute="Section" context="#stay"/>
        <RegExpr String="\[.*\]" attribute="Language" context="1"/>
        <DetectChar char="=" attribute="0" context="1"/>
      </context>
      <context attribute="0" lineEndContext="#pop" name="Value"/>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Section"  defStyleNum="dsKeyword"/>
      <itemData name="Key"  defStyleNum="dsDataType"/>
      <itemData name="Language"  defStyleNum="dsNormal" color="#0000FF" selColor="#ffffff" italic="0" bold="1"/>
    </itemDatas>
  </highlighting>
</language>