summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/r.xml
blob: 16b16b8ce5a459876e08f8621ba62c1d675b599f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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>