[rkward-cvs] rkward/rkward rkward.xml,1.2,1.3
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Tue Sep 12 14:58:41 UTC 2006
Update of /cvsroot/rkward/rkward/rkward
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7826
Modified Files:
rkward.xml
Log Message:
Port r.xml to rkward.xml
Index: rkward.xml
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rkward.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** rkward.xml 5 Apr 2006 12:29:56 -0000 1.2
--- rkward.xml 12 Sep 2006 14:58:39 -0000 1.3
***************
*** 1,83 ****
<?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="#stay" name="ctx0">
! <!-- We pop at line starts manually. If we are in a String subcontext (ctx1), using lineEndContext="#pop" would still pop the
! Normal Text (ctx0) parent context, which is not what we want. -->
! <RegExpr attribute="Normal Text" context="#pop" String="^." lookAhead="true"/>
! <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"/>
! <AnyChar attribute="Operators" context="#stay" String="+-*/^:$~!&|=><@"/>
! <RegExpr attribute="Operators" context="#stay" String="%[a-zA-Z_]*%"/>
! <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
! </context>
! <context attribute="String" lineEndContext="#stay" name="ctx1">
! <Detect2Chars attribute="Normal Text" context="#pop#pop" firstNonSpace="true" char=">" char1=" " lookAhead="true"/>
! <Detect2Chars attribute="Normal Text" context="#stay" firstNonSpace="true" char="+" char1=" "/>
! <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>
--- 1,147 ----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
! <!-- Kate 2.0 (KDE 3.0) highlighting module for RKWard
! version 0.2: (c) 2006 P. Ecochard
! lincense: GPL v2
! Based on the highlighting module for R version 0.4: (c) 2006 Thomas Friedrichsmeier, Arne Henningsen, and the RKWard Team
!
! Kate : http://kate.kde.org/
! R : http://www.r-project.org/
! RKWard : http://rkward.sourceforge.net/
! -->
! <language version="0.1" kateversion="2.1" name="RKWard output" section="Scripts" extensions="" 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="ctx0">
! <Detect2Chars attribute="Normal Text" context="ctxnorm" firstNonSpace="true" char=">" char1=" "/>
! <Detect2Chars attribute="Normal Text" context="ctxnorm" firstNonSpace="true" char="+" char1=" "/>
! </context>
! <context attribute="Normal Text" lineEndContext="#stay" name="ctxnorm">
! <!-- We pop at line starts manually. If we are in a String subcontext (ctx1), using lineEndContext="#pop" would still pop the
! Normal Text (ctx0) parent context, which is not what we want. -->
! <RegExpr attribute="Normal Text" context="#pop" String="^." lookAhead="true"/>
! <DetectChar attribute="String" context="string" char="""/>
! <keyword attribute="Control Structure" context="#stay" String="controls"/>
! <keyword attribute="Reserved Words" context="#stay" String="words"/>
! <Float attribute="Float" context="#stay"/>
! <Int attribute="Int" context="#stay"/>
! <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]*[(])"/>
! <RegExpr attribute="Keyword" context="parenthesis" String="\("/>
! <StringDetect attribute="Headline" context="Headline" String="##"/>
! <DetectChar attribute="Comment" context="Comment" char="#"/>
!
! <!-- The following three lines look worse than they are: If there are any other operators directly before or after -> and <-, this is a syntax error (expections: ->> and <<-) -->
! <RegExpr attribute="Error" context="#stay" String="([\+\-\*/\^\:\$~!&\|=>@^])([<]{1,2}\-|\-[>]{1,2})"/>
! <RegExpr attribute="Error" context="#stay" String="([<]{1,2}\-|\-[>]{1,2})([\+\-\*/\^\:\$~!&\|=<@])"/>
! <RegExpr attribute="Error" context="#stay" String="([<]{3}|[>]{3})"/>
! <RegExpr attribute="Assign" context="#stay" String="[<]{1,2}\-"/>
! <RegExpr attribute="Assign" context="#stay" String="\-[>]{1,2}"/>
! <!-- Much like above: Most other operators are forbidden around = -->
! <RegExpr attribute="Error" context="#stay" String="([\+\-\*/\^\:\$~&\|@^])="/>
! <RegExpr attribute="Error" context="#stay" String="=([\+\-\*/\^\:\$~!<>&\|@^])"/>
! <RegExpr attribute="Assign" context="#stay" String="=(?!=)"/>
! <!-- These operators are fine as long as they're followed by something else or end of line. Error otherwise -->
! <RegExpr attribute="Operator" context="#stay" String="(\+|\-|\*|/|<=|>=|={1,2}|\!=|\|{1,2}|&{1,2}|:{1,2}|\^|@|\$|~)((?!(\+|\-|\*|/|<=|>=|=|\!=|\||&|:|\^|@|\$|~))|$)"/>
! <RegExpr attribute="Error" context="#stay" String="(\+|\-|\*|/|<=|>=|={1,2}|\!=|\|{1,2}|&{1,2}|:{1,2}|\^|@|\$|~){2,}"/>
! <RegExpr attribute="Operator" context="#stay" String="%[^%]*%"/>
! </context>
!
! <context attribute="In Parenthesis" lineEndContext="#stay" name="parenthesis">
! <Detect2Chars attribute="Normal Text" context="#pop#pop#pop#pop#pop#pop#pop#pop#pop#pop#pop#pop#pop" firstNonSpace="true" char=">" char1=" " lookAhead="true"/>
! <Detect2Chars attribute="Normal Text" context="#stay" firstNonSpace="true" char="+" char1=" "/>
! <LineContinue attribute="Boolean" context="#stay"/>
! <DetectChar attribute="Keyword" context="#pop" char=")"/>
!
! <!-- The following are copied from the ctx0 context -->
! <DetectChar attribute="String" context="string" char="""/>
! <keyword attribute="Control Structure" context="#stay" String="controls"/>
! <keyword attribute="Reserved Words" context="#stay" String="words"/>
! <Float attribute="Float" context="#stay"/>
! <Int attribute="Int" context="#stay"/>
! <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]*[(])"/>
! <RegExpr attribute="Keyword" context="parenthesis" String="\("/>
! <StringDetect attribute="Headline" context="Headline" String="##"/>
! <DetectChar attribute="Comment" context="Comment" char="#"/>
!
! <!-- The following three lines look worse than they are: If there are any other operators directly before or after -> and <-, this is a syntax error (expections: ->> and <<-) -->
! <RegExpr attribute="Error" context="#stay" String="([\+\-\*/\^\:\$~!&\|=>@^])([<]{1,2}\-|\-[>]{1,2})"/>
! <RegExpr attribute="Error" context="#stay" String="([<]{1,2}\-|\-[>]{1,2})([\+\-\*/\^\:\$~!&\|=<@])"/>
! <RegExpr attribute="Error" context="#stay" String="([<]{3}|[>]{3})"/>
! <RegExpr attribute="Assign" context="#stay" String="[<]{1,2}\-"/>
! <RegExpr attribute="Assign" context="#stay" String="\-[>]{1,2}"/>
! <!-- Much like above: Most other operators are forbidden around = -->
! <RegExpr attribute="Error" context="#stay" String="([\+\-\*/\^\:\$~&\|@^])="/>
! <RegExpr attribute="Error" context="#stay" String="=([\+\-\*/\^\:\$~!<>&\|@^])"/>
! <!-- no traditional assignment with "=" inside parentheses! See "Identifier below" -->
! <!-- These operators are fine as long as they're followed by something else or end of line. Error otherwise -->
! <RegExpr attribute="Operator" context="#stay" String="(\+|\-|\*|/|<=|>=|={1,2}|\!=|\|{1,2}|&{1,2}|:{1,2}|\^|@|\$|~)((?!(\+|\-|\*|/|<=|>=|=|\!=|\||&|:|\^|@|\$|~))|$)"/>
! <RegExpr attribute="Error" context="#stay" String="(\+|\-|\*|/|<=|>=|={1,2}|\!=|\|{1,2}|&{1,2}|:{1,2}|\^|@|\$|~){2,}"/>
! <RegExpr attribute="Operator" context="#stay" String="%[^%]*%"/>
!
! <RegExpr attribute="Identifier" context="#stay" String="[a-zA-Z_\.][0-9a-zA-Z_\.]*[\s]*=(?=[^=])"/>
! </context>
!
! <context attribute="String" lineEndContext="#stay" name="string">
! <Detect2Chars attribute="Normal Text" context="#pop#pop" firstNonSpace="true" char=">" char1=" " lookAhead="true"/>
! <Detect2Chars attribute="Normal Text" context="#stay" firstNonSpace="true" char="+" char1=" "/>
! <DetectChar attribute="String" context="#pop" char="""/>
! <HlCStringChar attribute="String Char" context="#stay"/>
! </context>
!
! <context attribute="Headline" lineEndContext="#pop" name="Headline"/>
! <context attribute="Comment" lineEndContext="#pop" name="Comment"/>
! </contexts>
!
! <itemDatas>
! <itemData name="Output" defStyleNum="dsOthers"/>
! <!-- KDE default colors: http://accessibility.kde.org/oxygen.php?color=white -->
! <itemData name="Normal Text" defStyleNum="dsNormal"/>
! <itemData name="Keyword" defStyleNum="dsKeyword"/>
! <itemData name="Identifier" defStyleNum="dsDataType"/>
! <itemData name="String" defStyleNum="dsString"/>
! <itemData name="Headline" defStyleNum="dsNormal" color="#b00000" selColor="#b00000" bold="1" italic="0"/> <!-- KDE default color: text 5 -->
! <itemData name="Comment" defStyleNum="dsComment"/>
! <itemData name="Assign" defStyleNum="dsNormal" color="#336366" selColor="#ccc099" bold="1" italic="0"/> <!-- KDE default color: text 7 -->
! <itemData name="Control Structure" defStyleNum="dsNormal" color="#0000bf" selColor="#bfbf00"/> <!-- KDE default color: text 2 -->
! <itemData name="Reserved Words" defStyleNum="dsOthers"/>
! <itemData name="Error" defStyleNum="dsError"/>
! <itemData name="Operator" defStyleNum="dsNormal" color="#803f00" selColor="#000077" bold="0" italic="0"/> <!-- KDE default color: focussed text -->
! <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