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

index 2f75e4416e976304c57b9f0cbee34ea7df13b5e3..bd7446d34e36060aa6f41690679998fee36e3a6e 100644 (file)
                        <RegExpr String="[0-9][0-9_]*\.[0-9_]*([eE][+-]?[0-9_]+)?(f32|f64|f)?" attribute="Number" context="#stay"/>
                        <RegExpr String="[0-9][0-9_]*(u8|u16|u32|u64|i8|i16|i32|i64|u|i)?" attribute="Number" context="#stay"/>
                        <RegExpr String="[a-zA-Z_][a-zA-Z0-9_]*::" attribute="Scope"/>
+                       <RegExpr String="\w+!" attribute="Macro"/>
                        <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"       defStyleNum="dsString" color="#FF0000"/>
                <itemData name="String Char"  defStyleNum="dsChar" color="#FF0000"/>
                <itemData name="Character"    defStyleNum="dsChar" color="#FF0000"/>
+               <itemData name="Macro"        defStyleNum="dsOthers"/>
        </itemDatas>
 </highlighting>
 <general>