<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
  <!-- Kate 2.0 (KDE 3.0) highlighting module for R
       version 0.2: (c) 2002 E.L. Willighagen, GPL v2 license

       Kate: http://www.kde.org/kate
       R   : http://www.r-project.org/
    -->
<language version="1.04" kateversion="2.1" name="R Script" section="Scripts" extensions="*.R" mimetype="" author="E.L. Willighagen" 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="Normal Text" lineEndContext="#stay" name="ctx0">
         <keyword attribute="Control Structure" context="#stay" String="controls"/>
         <keyword attribute="Reserved Words" context="#stay" String="words"/>
         <DetectChar attribute="String" context="ctx1" char="&quot;"/>
         <RegExpr attribute="Keyword" context="#stay" String="[a-zA-Z_]+ *\("/>
         <DetectChar attribute="Keyword" context="#stay" char="("/>
         <DetectChar attribute="Keyword" context="#stay" char=")"/>
         <RegExpr attribute="Comment" context="#stay" String="#.*$"/>
         <AnyChar attribute="Operators" context="#stay" String="+-*/^:$~!&amp;|=&gt;&lt;@"/>
         <RegExpr attribute="Operators" context="#stay" String="%[a-zA-Z_]*%"/>
       </context>
   
       <context attribute="String" lineEndContext="#stay" name="ctx1">
         <DetectChar attribute="String" context="#pop" char="&quot;"/>
       </context>

    </contexts>
    
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Keyword" defStyleNum="dsKeyword" bold="0" 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="Infix" defStyleNum="dsNormal" color="#aa5500" selColor="#000077"/>
    </itemDatas>
  </highlighting>
  
  <general>
    <comments>
      <comment name="singleLine" start="#" end=""/>
    </comments>
    <keywords casesensitive="1" />
  </general>
</language>
<!-- kate: space-indent on; indent-width 2; replace-tabs on; -->
