]> git.lizzy.rs Git - rust.git/commitdiff
kate: detect and highlight regions
authorAndrew Paseltiner <apaseltiner@gmail.com>
Wed, 27 Feb 2013 03:17:58 +0000 (22:17 -0500)
committerAndrew Paseltiner <apaseltiner@gmail.com>
Sun, 3 Mar 2013 13:40:37 +0000 (08:40 -0500)
src/etc/kate/rust.xml

index 5ecab0d49c00761b53b1ab1f67e673462f232724..7fc1f76aee4fde15d8dfdc318aff7c4fcfa0658c 100644 (file)
                        <RegExpr String="[0-9][0-9_]*(u8|u16|u32|u64|i8|i16|i32|i64|u|i)?" attribute="Number" context="#stay"/>
                        <RegExpr String="&rustIdent;::" attribute="Scope"/>
                        <RegExpr String="&rustIdent;!" attribute="Macro"/>
+                       <RegExpr String="&apos;&rustIdent;(?!&apos;)" attribute="Lifetime"/>
                        <DetectChar char="{" attribute="Symbol" context="#stay" beginRegion="Brace" />
                        <DetectChar char="}" attribute="Symbol" context="#stay" endRegion="Brace" />
                        <DetectChar char="&quot;" attribute="String" context="String"/>
                <itemData name="String Char"  defStyleNum="dsChar" color="#FF0000"/>
                <itemData name="Character"    defStyleNum="dsChar" color="#FF0000"/>
                <itemData name="Macro"        defStyleNum="dsOthers"/>
+               <itemData name="Lifetime"     defStyleNum="dsOthers" bold="1"/>
        </itemDatas>
 </highlighting>
 <general>