summaryrefslogtreecommitdiffstats
path: root/kate/data/glosstex.xml
blob: b9a98866bf82e70b687c9125d35748482bdbc608 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="GlossTex" version="0.01" kateversion="2.1" extensions="*.gdf" section="Markup" mimetype="text/x-gdf" casesensitive="1" author="Thomas Braun([email protected])" license="LGPL">
  <highlighting>
    <contexts>
      <context name="Comment" attribute="Comment" lineEndContext="#stay">
      <StringDetect String="@entry" attribute="Entry" context="Entry"/>
      </context>
      <context name="Entry"  attribute="Entry" lineEndContext="#pop">
        <DetectChar char="{" attribute="Normal Text" context="Label"/>
        <DetectChar char="}" attribute="Normal Text" context="Text"/>
      </context>
      <context name="Label"  attribute="Label" lineEndContext="#pop">
      <DetectChar char="," attribute="Normal Text" context="Abbrev"/>
      <DetectChar char="}" attribute="Normal Text" context="Text"/>
      </context>
      <context name="Abbrev" attribute="Abbrev" lineEndContext="#pop">
        <RegExpr String="\{[^\{\}]*\}" attribute="Abbrev" context="#stay"/>
        <DetectChar char="," attribute="Normal Text" context="Full"/>
	<DetectChar char="}" attribute="Normal Text" context="Text"/>
      </context>
        <context name="Full" attribute="Full" lineEndContext="#pop">
	<RegExpr String="\{[^\{\}]*\}" attribute="Full" context="#stay"/>
	<DetectChar char="}" attribute="Normal Text" context="Text"/>
      </context>
      <context name="Text" attribute="Normal Text" lineEndContext="Comment">
      <IncludeRules context="##LaTeX" includeAttrib="true"/>
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Comment" defStyleNum="dsComment"/>
      <itemData name="Entry" defStyleNum="dsKeyword" color="#0000ff"/>
      <itemData name="Label" defStyleNum="dsDataType"/>
      <itemData name="Abbrev" defStyleNum="dsOthers"/>
      <itemData name="Full" defStyleNum="dsString"/>
      <itemData name="Text" defStyleNum="dsChar"/>
    </itemDatas>
  </highlighting>
  <general>
   <keywords casesensitive="0" weakDeliminator="\" wordWrapDeliminator=",{}[]"/>
      <comments>
      <comment name="singleLine" start="%" />
    </comments>
    </general>
  </language>