summaryrefslogtreecommitdiffstats
path: root/kate/data/glosstex.xml
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-11 16:14:23 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-11 16:14:23 -0600
commit7439a4b0e05832e047040ab8bf9ef13abd9288b2 (patch)
tree3a15e3033fa66b2d947daa14e6807b39f3dc84d1 /kate/data/glosstex.xml
parent783973a7d6910fee50d90fcfaf439ae3bbb15b8c (diff)
downloadtdelibs-7439a4b0e05832e047040ab8bf9ef13abd9288b2.tar.gz
tdelibs-7439a4b0e05832e047040ab8bf9ef13abd9288b2.zip
Update kate synatax highlighting files
This closes Bug 764
Diffstat (limited to 'kate/data/glosstex.xml')
-rw-r--r--kate/data/glosstex.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/kate/data/glosstex.xml b/kate/data/glosstex.xml
new file mode 100644
index 000000000..b9a98866b
--- /dev/null
+++ b/kate/data/glosstex.xml
@@ -0,0 +1,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(braun@physik.fu-berlin.de)" 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>