Skip to content

Commit 6c36dc8

Browse files
fix kate syntax highlighting file
1 parent 076dab9 commit 6c36dc8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/etc/kate/rust.xml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE language SYSTEM "language.dtd">
3-
<language name="Rust" version="0.3.1" kateversion="2.4" section="Sources" extensions="*.rs" mimetype="text/x-rust" priority="15">
3+
<language name="Rust" version="0.3.1" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
44
<highlighting>
55
<list name="fn">
66
<item> fn </item>
@@ -197,6 +197,7 @@
197197
<DetectChar char="{" attribute="Symbol" context="#stay" beginRegion="Brace" />
198198
<DetectChar char="}" attribute="Symbol" context="#stay" endRegion="Brace" />
199199
<DetectChar char="&quot;" attribute="String" context="String"/>
200+
<DetectChar char="&apos;" attribute="Character" context="Character"/>
200201
<DetectIdentifier/>
201202
</context>
202203
<context attribute="Definition" lineEndContext="#stay" name="Function">
@@ -209,11 +210,15 @@
209210
<DetectChar char="=" attribute="Normal Text" context="#pop"/>
210211
<DetectChar char="&lt;" attribute="Normal Text" context="#pop"/>
211212
</context>
212-
<context attribute="String" lineEndContext="#pop" name="String">
213+
<context attribute="String" lineEndContext="#stay" name="String">
213214
<LineContinue attribute="String" context="#stay"/>
214215
<HlCStringChar attribute="String Char" context="#stay"/>
215216
<DetectChar attribute="String" context="#pop" char="&quot;"/>
216217
</context>
218+
<context attribute="Character" lineEndContext="#pop" name="Character">
219+
<HlCStringChar attribute="Character" context="#stay"/>
220+
<DetectChar attribute="Character" context="#pop" char="&apos;"/>
221+
</context>
217222
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
218223
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
219224
<DetectSpaces/>
@@ -234,6 +239,7 @@
234239
<itemData name="Number" defStyleNum="dsDecVal" color="#116644"/>
235240
<itemData name="String" defStyleNum="dsString" color="#FF0000"/>
236241
<itemData name="String Char" defStyleNum="dsChar" color="#FF0000"/>
242+
<itemData name="Character" defStyleNum="dsChar" color="#FF0000"/>
237243
</itemDatas>
238244
</highlighting>
239245
<general>

0 commit comments

Comments
 (0)