Skip to content

Commit bcd95d0

Browse files
committed
kate: detect and highlight regions
1 parent 11d10fd commit bcd95d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/etc/kate/rust.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
<RegExpr String="[0-9][0-9_]*(u8|u16|u32|u64|i8|i16|i32|i64|u|i)?" attribute="Number" context="#stay"/>
177177
<RegExpr String="&rustIdent;::" attribute="Scope"/>
178178
<RegExpr String="&rustIdent;!" attribute="Macro"/>
179+
<RegExpr String="&apos;&rustIdent;(?!&apos;)" attribute="Lifetime"/>
179180
<DetectChar char="{" attribute="Symbol" context="#stay" beginRegion="Brace" />
180181
<DetectChar char="}" attribute="Symbol" context="#stay" endRegion="Brace" />
181182
<DetectChar char="&quot;" attribute="String" context="String"/>
@@ -223,6 +224,7 @@
223224
<itemData name="String Char" defStyleNum="dsChar" color="#FF0000"/>
224225
<itemData name="Character" defStyleNum="dsChar" color="#FF0000"/>
225226
<itemData name="Macro" defStyleNum="dsOthers"/>
227+
<itemData name="Lifetime" defStyleNum="dsOthers" bold="1"/>
226228
</itemDatas>
227229
</highlighting>
228230
<general>

0 commit comments

Comments
 (0)