summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/r.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/r.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/r.xml') (more/less context) (show whitespace changes)
-rw-r--r--share/tinykate/syntax/r.xml54
1 files changed, 54 insertions, 0 deletions
diff --git a/share/tinykate/syntax/r.xml b/share/tinykate/syntax/r.xml
new file mode 100644
index 0000000..16b16b8
--- a/dev/null
+++ b/share/tinykate/syntax/r.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE language SYSTEM "language.dtd">
+<language name="R Script" section="Scripts" extensions="*.R" mimetype="">
+ <!-- Kate 2.0 (KDE 3.0) highlighting module for R
+ version 0.2: (c) 2002 E.L. Willighagen, GPL v2 license
+
+ info: http://www-sigma.sci.kun.nl/Persoonlijk/egonw/r-kate/
+ Kate: http://www.kde.org/apps/kate
+ R : http://www.r-project.org/
+ -->
+ <highlighting>
+ <list name="keywords">
+ <item> for </item>
+ <item> in </item>
+ </list>
+ <contexts>
+ <context attribute="0" lineEndContext="#stay">
+ <keyword attribute="1" context="#stay" String="keywords"/>
+ <DetectChar attribute="4" context="2" char="&quot;"/>
+ <RegExpr attribute="1" context="1" String="[a-zA-Z_]+\("/>
+ <DetectChar attribute="5" context="3" char="#"/>
+ </context>
+
+ <context attribute="0" lineEndContext="#stay">
+ <LineContinue attribute="8" context="#stay"/>
+ <DetectChar attribute="1" context="#pop" char=")"/>
+ <DetectChar attribute="4" context="2" char="&quot;"/>
+ <RegExpr attribute="2" context="#stay" String="[a-zA-Z_]+="/>
+ <RegExpr attribute="1" context="1" String="[a-zA-Z_]+\("/>
+ </context>
+
+ <context attribute="4" lineEndContext="#stay">
+ <DetectChar attribute="4" context="#pop" char="&quot;"/>
+ </context>
+
+ <context attribute="5" lineEndContext="0" name="Comment"/>
+
+ </contexts>
+ <itemDatas>
+ <itemData name="Normal Text" defStyleNum="dsNormal"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword"/>
+ <itemData name="Identifier" defStyleNum="dsOthers"/>
+ <itemData name="Types" defStyleNum="dsDataType"/>
+ <itemData name="String" defStyleNum="dsString"/>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ </itemDatas>
+ </highlighting>
+ <general>
+ <comments>
+ <comment name="singleLine" start="#" end=""/>
+ </comments>
+ <keywords casesensitive="0" />
+ </general>
+</language>