Skip to content

Commit 5679f01

Browse files
committed
Fixup r.xml
1 parent 60a18aa commit 5679f01

File tree

1 file changed

+9
-8
lines changed
  • inst/rmarkdown/templates/reprex_document/resources

1 file changed

+9
-8
lines changed

inst/rmarkdown/templates/reprex_document/resources/r.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
<keyword attribute="Reserved Words" context="#stay" String="words"/>
114114
<Float attribute="Float" context="#stay"/>
115115
<Int attribute="Int" context="NumericSuffix"/>
116-
<RegExpr attribute="Keyword" context="#stay" String="[a-zA-Z_]+[a-zA-Z_\.0-9]*(?=[\s]*[(])|\.[a-zA-Z_\.]+[a-zA-Z_\.0-9]*(?=[\s]*[(])"/>
116+
<RegExpr attribute="Function" context="#stay" String="[a-zA-Z_]+[a-zA-Z_\.0-9]*(?=[\s]*[(])|\.[a-zA-Z_\.]+[a-zA-Z_\.0-9]*(?=[\s]*[(])"/>
117117
<DetectChar attribute="Symbol" context="parenthesis" char="("/>
118118

119119
<!-- For (assignment) operators, enter a new context operator_rhs to check what follows (generally, that should not be another op) -->
@@ -146,18 +146,19 @@
146146

147147
<itemDatas>
148148
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
149-
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
150-
<itemData name="Keyword" defStyleNum="dsFunction" spellChecking="false"/>
151-
<itemData name="Identifier" defStyleNum="dsAttribute" spellChecking="false"/>
149+
<itemData name="Symbol" defStyleNum="dsVariable" spellChecking="false"/>
150+
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
151+
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/>
152+
<itemData name="Identifier" defStyleNum="dsVariable" spellChecking="false"/>
152153
<itemData name="String" defStyleNum="dsString"/>
153154
<itemData name="Headline" defStyleNum="dsDocumentation" bold="1"/>
154155
<itemData name="Comment" defStyleNum="dsComment"/>
155-
<itemData name="Assign" defStyleNum="dsOthers" bold="1" italic="0" spellChecking="false"/>
156+
<itemData name="Assign" defStyleNum="dsOperator" bold="1" italic="0" spellChecking="false"/>
156157
<itemData name="Control Structure" defStyleNum="dsControlFlow" spellChecking="false"/>
157-
<itemData name="Reserved Words" defStyleNum="dsConstant" spellChecking="false"/>
158+
<itemData name="Reserved Words" defStyleNum="dsBuiltIn" spellChecking="false"/>
158159
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
159-
<itemData name="Operator" defStyleNum="dsSpecialChar" spellChecking="false"/>
160-
<itemData name="String Char" defStyleNum="dsSpecialChar" spellChecking="false"/>
160+
<itemData name="Operator" defStyleNum="dsOperator" spellChecking="false"/>
161+
<itemData name="String Char" defStyleNum="dsString" spellChecking="false"/>
161162
<itemData name="Float" defStyleNum="dsFloat" spellChecking="false"/>
162163
<itemData name="Int" defStyleNum="dsDecVal" spellChecking="false"/>
163164
<itemData name="Numeric Suffix" defStyleNum="dsDataType" spellChecking="false"/>

0 commit comments

Comments
 (0)