-rw-r--r-- | share/tinykate/syntax/r.xml | 54 |
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 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <language name="R Script" section="Scripts" extensions="*.R" mimetype=""> | ||
4 | <!-- Kate 2.0 (KDE 3.0) highlighting module for R | ||
5 | version 0.2: (c) 2002 E.L. Willighagen, GPL v2 license | ||
6 | |||
7 | info: http://www-sigma.sci.kun.nl/Persoonlijk/egonw/r-kate/ | ||
8 | Kate: http://www.kde.org/apps/kate | ||
9 | R : http://www.r-project.org/ | ||
10 | --> | ||
11 | <highlighting> | ||
12 | <list name="keywords"> | ||
13 | <item> for </item> | ||
14 | <item> in </item> | ||
15 | </list> | ||
16 | <contexts> | ||
17 | <context attribute="0" lineEndContext="#stay"> | ||
18 | <keyword attribute="1" context="#stay" String="keywords"/> | ||
19 | <DetectChar attribute="4" context="2" char="""/> | ||
20 | <RegExpr attribute="1" context="1" String="[a-zA-Z_]+\("/> | ||
21 | <DetectChar attribute="5" context="3" char="#"/> | ||
22 | </context> | ||
23 | |||
24 | <context attribute="0" lineEndContext="#stay"> | ||
25 | <LineContinue attribute="8" context="#stay"/> | ||
26 | <DetectChar attribute="1" context="#pop" char=")"/> | ||
27 | <DetectChar attribute="4" context="2" char="""/> | ||
28 | <RegExpr attribute="2" context="#stay" String="[a-zA-Z_]+="/> | ||
29 | <RegExpr attribute="1" context="1" String="[a-zA-Z_]+\("/> | ||
30 | </context> | ||
31 | |||
32 | <context attribute="4" lineEndContext="#stay"> | ||
33 | <DetectChar attribute="4" context="#pop" char="""/> | ||
34 | </context> | ||
35 | |||
36 | <context attribute="5" lineEndContext="0" name="Comment"/> | ||
37 | |||
38 | </contexts> | ||
39 | <itemDatas> | ||
40 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | ||
41 | <itemData name="Keyword" defStyleNum="dsKeyword"/> | ||
42 | <itemData name="Identifier" defStyleNum="dsOthers"/> | ||
43 | <itemData name="Types" defStyleNum="dsDataType"/> | ||
44 | <itemData name="String" defStyleNum="dsString"/> | ||
45 | <itemData name="Comment" defStyleNum="dsComment"/> | ||
46 | </itemDatas> | ||
47 | </highlighting> | ||
48 | <general> | ||
49 | <comments> | ||
50 | <comment name="singleLine" start="#" end=""/> | ||
51 | </comments> | ||
52 | <keywords casesensitive="0" /> | ||
53 | </general> | ||
54 | </language> | ||