about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbombless <bombless@126.com>2014-12-26 21:30:11 +0800
committerbombless <bombless@126.com>2014-12-26 21:30:11 +0800
commit8387d1e1bec16b0ebcb7b63b5c6cfb08918e3044 (patch)
treefff65f40b187b5a375b3de40d0af3d083b9c99be
parentc43efee6def9a4a4e943feef0236d3e17b3f581d (diff)
downloadrust-8387d1e1bec16b0ebcb7b63b5c6cfb08918e3044.tar.gz
rust-8387d1e1bec16b0ebcb7b63b5c6cfb08918e3044.zip
add new-style Unicode escapes
-rw-r--r--src/etc/kate/rust.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/kate/rust.xml b/src/etc/kate/rust.xml
index c22cd9c2047..9d045028509 100644
--- a/src/etc/kate/rust.xml
+++ b/src/etc/kate/rust.xml
@@ -245,6 +245,7 @@
 		<context attribute="CharEscape" lineEndContext="#pop" name="CharEscape">
 			<AnyChar String="nrt\&apos;&quot;" attribute="CharEscape" context="#pop"/>
 			<RegExpr String="x[0-9a-fA-F]{2}" attribute="CharEscape" context="#pop"/>
+			<RegExpr String="u\{[0-9a-fA-F]{1,6}\}" attribute="CharEscape" context="#pop"/>
 			<RegExpr String="u[0-9a-fA-F]{4}" attribute="CharEscape" context="#pop"/>
 			<RegExpr String="U[0-9a-fA-F]{8}" attribute="CharEscape" context="#pop"/>
 			<RegExpr String="." attribute="Error" context="#pop"/>
@@ -255,7 +256,7 @@
 			<Detect2Chars char="*" char1="/" attribute="Comment" context="#pop" endRegion="Comment"/>
 		</context>
 	</contexts>
-    <itemDatas>
+	<itemDatas>
 		<itemData name="Normal Text"  defStyleNum="dsNormal"/>
 		<itemData name="Keyword"      defStyleNum="dsKeyword" color="#770088" bold="1"/>
 		<itemData name="Self"         defStyleNum="dsKeyword" color="#FF0000" bold="1"/>