about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Belliard <vincent@famillebelliard.fr>2012-08-21 16:27:17 +0200
committerVincent Belliard <vincent@famillebelliard.fr>2012-08-21 16:27:17 +0200
commit6c36dc86600186db285534eda0948dea2af71e9d (patch)
treef7639c7c84cb5286c79e75cd480421f63a023d8d
parent076dab92f73bb882e59e2f6a1ee6ba2b47bf6110 (diff)
fix kate syntax highlighting file
-rw-r--r--src/etc/kate/rust.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/etc/kate/rust.xml b/src/etc/kate/rust.xml
index ea9ada8f7e6..b93479677ee 100644
--- a/src/etc/kate/rust.xml
+++ b/src/etc/kate/rust.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE language SYSTEM "language.dtd">
-<language name="Rust" version="0.3.1" kateversion="2.4" section="Sources" extensions="*.rs" mimetype="text/x-rust" priority="15">
+<language name="Rust" version="0.3.1" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
 <highlighting>
 	<list name="fn">
 		<item> fn </item>
@@ -197,6 +197,7 @@
 			<DetectChar char="{" attribute="Symbol" context="#stay" beginRegion="Brace" />
 			<DetectChar char="}" attribute="Symbol" context="#stay" endRegion="Brace" />
 			<DetectChar char="&quot;" attribute="String" context="String"/>
+			<DetectChar char="&apos;" attribute="Character" context="Character"/>
 			<DetectIdentifier/>
 		</context>
 		<context attribute="Definition" lineEndContext="#stay" name="Function">
@@ -209,11 +210,15 @@
 			<DetectChar char="=" attribute="Normal Text" context="#pop"/>
 			<DetectChar char="&lt;" attribute="Normal Text" context="#pop"/>
 		</context>
-		<context attribute="String" lineEndContext="#pop" name="String">
+		<context attribute="String" lineEndContext="#stay" name="String">
 			<LineContinue attribute="String" context="#stay"/>
 			<HlCStringChar attribute="String Char" context="#stay"/>
 			<DetectChar attribute="String" context="#pop" char="&quot;"/>
 		</context>
+		<context attribute="Character" lineEndContext="#pop" name="Character">
+			<HlCStringChar attribute="Character" context="#stay"/>
+			<DetectChar attribute="Character" context="#pop" char="&apos;"/>
+		</context>
 		<context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
 		<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
 			<DetectSpaces/>
@@ -234,6 +239,7 @@
 		<itemData name="Number"       defStyleNum="dsDecVal" color="#116644"/>
 		<itemData name="String"       defStyleNum="dsString" color="#FF0000"/>
 		<itemData name="String Char"  defStyleNum="dsChar" color="#FF0000"/>
+		<itemData name="Character"    defStyleNum="dsChar" color="#FF0000"/>
 	</itemDatas>
 </highlighting>
 <general>