summaryrefslogtreecommitdiffstats
path: root/kate/data/r.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kate/data/r.xml')
-rw-r--r--kate/data/r.xml18
1 files changed, 11 insertions, 7 deletions
diff --git a/kate/data/r.xml b/kate/data/r.xml
index 8213d5b4a..9a5ef8168 100644
--- a/kate/data/r.xml
+++ b/kate/data/r.xml
@@ -7,7 +7,7 @@
R : http://www.r-project.org/
RKWard : http://rkward.sourceforge.net/
-->
-<language version="2.07-1" kateversion="2.3" name="R Script" section="Scripts" extensions="*.R;*.r;*.S;*.s;*.q" mimetype="" license="GPL">
+<language version="2.08-1" kateversion="2.3" name="R Script" section="Scripts" extensions="*.R;*.r;*.S;*.s;*.q" mimetype="" license="GPL">
<highlighting>
<list name="controls">
@@ -43,7 +43,7 @@
<DetectChar attribute="Error" context="#stay" char="}" />
<DetectChar attribute="Error" context="#stay" char=")"/>
</context>
-
+
<context attribute="Normal Text" lineEndContext="#stay" name="ctx0">
<IncludeRules context="CommonRules"/>
@@ -65,12 +65,12 @@
<DetectChar attribute="String" context="#pop" char="&quot;"/>
<HlCStringChar attribute="String Char" context="#stay"/>
</context>
-
+
<context attribute="String" lineEndContext="#stay" name="string2">
<DetectChar attribute="String" context="#pop" char="'"/>
<HlCStringChar attribute="String Char" context="#stay"/>
</context>
-
+
<context attribute="Identifier" lineEndContext="#stay" name="backquotedsymbol">
<DetectChar attribute="String" context="#pop" char="`"/>
<HlCStringChar attribute="String Char" context="#stay"/>
@@ -85,8 +85,12 @@
<RegExpr attribute="Error" context="#stay" String="(\*|/|&lt;|&gt;|\!=|=|\||&amp;|:|\^|@|\$|~)"/>
</context>
- <context attribute="Headline" lineEndContext="#pop" name="Headline"/>
- <context attribute="Comment" lineEndContext="#pop" name="Comment"/>
+ <context attribute="Headline" lineEndContext="#pop" name="Headline">
+ <IncludeRules context="##Alerts" />
+ </context>
+ <context attribute="Comment" lineEndContext="#pop" name="Comment">
+ <IncludeRules context="##Alerts" />
+ </context>
<!-- This context is not really used, but contains the common rules -->
<context name="CommonRules" lineEndContext="#stay" attribute="Normal Text" >
@@ -109,7 +113,7 @@
<RegExpr attribute="Assign" context="operator_rhs" String="=(?!=)"/>
<RegExpr attribute="Operator" context="operator_rhs" String="(\+|\-|\*{1,2}|/|&lt;=?|&gt;=?|={1,2}|\!=?|\|{1,2}|&amp;{1,2}|:{1,3}|\^|@|\$|~)"/>
<RegExpr attribute="Operator" context="operator_rhs" String="%[^%]*%"/>
-
+
<DetectChar attribute="Symbol" context="ctx0" char="{" beginRegion="Brace1" />
<!-- This is needed only to assist variable based indentation -->