[rkward-cvs] rkward/rkward rkward.xml,NONE,1.1
Pierre
ecoch at users.sourceforge.net
Wed Apr 5 07:44:06 UTC 2006
Update of /cvsroot/rkward/rkward/rkward
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18390
Added Files:
rkward.xml
Log Message:
Adding a highlighting file for the console.
--- NEW FILE: rkward.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Kate 2.0 (KDE 3.0) highlighting module for RKWard
version 0.1: (c) 2006 P. Ecochard, GPL v2 license
Based on the highlighting module for R version 0.2: (c) 2002 E.L. Willighagen, GPL v2 license
Kate: http://www.kde.org/kate
RKWard: http://rkward.sf.net
-->
<language version="0.1" kateversion="2.1" name="RKWard output" section="Scripts" extensions="*.R" mimetype="" author="P. Ecochard" license="GPL">
<highlighting>
<list name="controls">
<item> for </item>
<item> in </item>
<item> next </item>
<item> break </item>
<item> while </item>
<item> repeat </item>
<item> if </item>
<item> else </item>
<item> switch </item>
<item> function </item>
</list>
<list name="words">
<item> TRUE </item>
<item> FALSE </item>
<item> NULL </item>
<item> NA </item>
<item> Inf </item>
<item> NaN </item>
</list>
<contexts>
<context attribute="Output" lineEndContext="#stay" name="ctxb">
<Detect2Chars attribute="Normal Text" context="ctx0" firstNonSpace="true" char=">" char1=" "/>
<Detect2Chars attribute="Normal Text" context="ctx0" firstNonSpace="true" char="+" char1=" "/>
</context>
<context attribute="Normal Text" lineEndContext="#pop" name="ctx0">
<keyword attribute="Control Structure" context="#stay" String="controls"/>
<keyword attribute="Reserved Words" context="#stay" String="words"/>
<DetectChar attribute="String" context="ctx1" char="""/>
<RegExpr attribute="Keyword" context="#stay" String="[a-zA-Z_]+[a-zA-Z_\.0-9]* *(?=[\s]*[(])"/>
<RegExpr attribute="Keyword" context="#stay" String="\.[a-zA-Z_\.]+[a-zA-Z_\.0-9]* *(?=[\s]*[(])"/>
<Float attribute="Float" context="#stay"/>
<Int attribute="Int" context="#stay"/>
<RegExpr attribute="Comment" context="#stay" String="#.*$"/>
<AnyChar attribute="Operators" context="#stay" String="+-*/^:$~!&|=><@"/>
<RegExpr attribute="Operators" context="#stay" String="%[a-zA-Z_]*%"/>
</context>
<context attribute="String" lineEndContext="#stay" name="ctx1">
<DetectChar attribute="String" context="#pop" char="""/>
<HlCStringChar attribute="String Char" context="#stay"/>
</context>
</contexts>
<itemDatas>
<itemData name="Output" defStyleNum="dsOthers"/>
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="Keyword" defStyleNum="dsKeyword" italic="1"/>
<itemData name="String" defStyleNum="dsString"/>
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Control Structure" defStyleNum="dsNormal" color="#0000ff" selColor="#00ff00"/>
<itemData name="Reserved Words" defStyleNum="dsOthers"/>
<itemData name="Operators" defStyleNum="dsNormal" color="#aa5500" selColor="#000077"/>
<itemData name="String Char" defStyleNum="dsChar"/>
<itemData name="Float" defStyleNum="dsFloat"/>
<itemData name="Int" defStyleNum="dsDecVal"/>
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" end=""/>
</comments>
<keywords casesensitive="1" />
</general>
</language>
More information about the rkward-tracker
mailing list