summaryrefslogtreecommitdiffstats
path: root/kate/data/rtf.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-09-19 14:44:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-09-19 14:44:45 +0900
commit87fd132d0145d36d9eae9cdf521935202db228f7 (patch)
tree8e8126d831ffd90f38c34e49cdaec9b134086a8a /kate/data/rtf.xml
parent2824570e9e6581acc1b9ed81a8889ff5f58dd383 (diff)
downloadtdelibs-87fd132d0145d36d9eae9cdf521935202db228f7.tar.gz
tdelibs-87fd132d0145d36d9eae9cdf521935202db228f7.zip
Kate syntax highlighting files update - Sep 2014
Diffstat (limited to 'kate/data/rtf.xml')
-rw-r--r--kate/data/rtf.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/kate/data/rtf.xml b/kate/data/rtf.xml
new file mode 100644
index 000000000..50ea497bc
--- /dev/null
+++ b/kate/data/rtf.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd" [ <!ENTITY number "([-]?\d+)"> ] >
+<language name="Rich Text Format" version="1.0" kateversion="2.4" section="Markup" extensions="*.rtf" mimetype="text/rtf;application/rtf" author="Lukas Sommer" license="LGPL version 2.1, or version 3 or later versions approved by the membership of KDE e.V.; or any other license appoved by the emembership of KDE e.V.">
+
+ <highlighting>
+
+ <contexts>
+
+ <context attribute="Text" lineEndContext="#stay" name="context_normal">
+ <DetectChar char="{" attribute="Braces" beginRegion="true" />
+ <DetectChar char="}" attribute="Braces" endRegion="true" />
+ <DetectChar char="\" lookAhead="true" context="context_process_backslash" />
+ </context>
+
+ <context lineEndContext="context_normal" fallthrough="true" fallthroughContext="context_normal" attribute="Numeric parameter" name="context_process_backslash">
+ <Detect2Chars char="\" char1="|" attribute="Control words" />
+ <Detect2Chars char="\" char1="~" attribute="Character" />
+ <Detect2Chars char="\" char1="-" attribute="Character" />
+ <Detect2Chars char="\" char1="_" attribute="Character" />
+ <Detect2Chars char="\" char1=":" attribute="Control words" />
+ <Detect2Chars char="\" char1="*" attribute="Control words" />
+ <Detect2Chars char="\" char1="\" attribute="Character" />
+ <Detect2Chars char="\" char1="{" attribute="Character" />
+ <Detect2Chars char="\" char1="}" attribute="Character" />
+ <RegExpr String="\\u&number;" attribute="Character"/>
+ <RegExpr String="\\'[01-9a-f]{2}" attribute="Character"/>
+ <RegExpr String="\\[a-zA-Z]+" attribute="Control words" context="context_functionparameter" />
+ <DetectChar char="\" attribute="Error" />
+ </context>
+
+ <context attribute="Control words" lineEndContext="context_normal" fallthrough="true" fallthroughContext="context_normal" name="context_functionparameter">
+ <RegExpr String="[-]?\d+" attribute="Numeric parameter" context="context_normal" />
+ <DetectChar char="-" attribute="Error" />
+ </context>
+
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Text" defStyleNum="dsString"/>
+ <itemData name="Character" defStyleNum="dsChar"/>
+ <itemData name="Braces" defStyleNum="dsKeyword"/>
+ <itemData name="Control words" defStyleNum="dsFunction"/>
+ <itemData name="Numeric parameter" defStyleNum="dsDecVal"/>
+ <itemData name="Error" defStyleNum="dsError"/>
+ </itemDatas>
+
+ </highlighting>
+
+</language>