]> git.lizzy.rs Git - rust.git/commitdiff
add new-style Unicode escapes
authorbombless <bombless@126.com>
Fri, 26 Dec 2014 13:30:11 +0000 (21:30 +0800)
committerbombless <bombless@126.com>
Fri, 26 Dec 2014 13:30:11 +0000 (21:30 +0800)
src/etc/kate/rust.xml

index c22cd9c20479cf6e4fe044252e3f19d5ba42e170..9d0450285091c13703745d94a3ed53a611a3946a 100644 (file)
                <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"/>
                        <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"/>