summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/diff.xml
authormickeyl <mickeyl>2003-01-24 21:13:38 (UTC)
committer mickeyl <mickeyl>2003-01-24 21:13:38 (UTC)
commitf5fa70864c66da0f12f3d34f6451c74e3bfb3103 (patch) (side-by-side diff)
treead6585cc10ba3397bed82c87a1b692fa0a4b9e43 /share/tinykate/syntax/diff.xml
parent67699ef8fd807a99c08d6401a67e8000bca8f1ca (diff)
downloadopie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.zip
opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.gz
opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.bz2
added syntax highlighting patterns to tinykate
Diffstat (limited to 'share/tinykate/syntax/diff.xml') (more/less context) (ignore whitespace changes)
-rw-r--r--share/tinykate/syntax/diff.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/share/tinykate/syntax/diff.xml b/share/tinykate/syntax/diff.xml
new file mode 100644
index 0000000..2d71403
--- a/dev/null
+++ b/share/tinykate/syntax/diff.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+<language name="Diff" version="1.00" kateversion="2.0" section="Other" extensions="*.diff;*patch" mimetype="text/x-diff">
+ <highlighting>
+
+ <contexts>
+ <context attribute="0" lineEndContext="#stay">
+ <RegExpr attribute="1" context="1" String="^(\+\+\+|\-\-\-|\*\*\*|diff|\d)" />
+ <RegExpr attribute="4" context="2" String="^(\+|&gt;|!)" />
+ <RegExpr attribute="3" context="3" String="^(\-|&lt;)" />
+ <RegExpr attribute="2" context="4" String="^\@\@" />
+ </context>
+
+ <context attribute="1" lineEndContext="#pop" />
+ <context attribute="4" lineEndContext="#pop" />
+ <context attribute="3" lineEndContext="#pop" />
+ <context attribute="2" lineEndContext="#pop" />
+
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword"/>
+ <itemData name="Data Type" defStyleNum="dsDataType"/>
+ <itemData name="Removed line" defStyleNum="dsOthers"/>
+ <itemData name="Added line" defStyleNum="dsString"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ </itemDatas>
+ </highlighting>
+ <general>
+ <keywords casesensitive="1" />
+ </general>
+</language>