diff options
| author | Andrew Paseltiner <apaseltiner@gmail.com> | 2013-02-26 22:17:58 -0500 |
|---|---|---|
| committer | Andrew Paseltiner <apaseltiner@gmail.com> | 2013-03-03 08:40:37 -0500 |
| commit | bcd95d0254bf6bd874a455ffe0e17354ea68f79b (patch) | |
| tree | 3a9b08d085ce5ff26c1723a895d27433975474fd | |
| parent | 11d10fdb092a02d4cad482ddd720a0330f31d299 (diff) | |
| download | rust-bcd95d0254bf6bd874a455ffe0e17354ea68f79b.tar.gz rust-bcd95d0254bf6bd874a455ffe0e17354ea68f79b.zip | |
kate: detect and highlight regions
| -rw-r--r-- | src/etc/kate/rust.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/etc/kate/rust.xml b/src/etc/kate/rust.xml index 5ecab0d49c0..7fc1f76aee4 100644 --- a/src/etc/kate/rust.xml +++ b/src/etc/kate/rust.xml @@ -176,6 +176,7 @@ <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="'&rustIdent;(?!')" attribute="Lifetime"/> <DetectChar char="{" attribute="Symbol" context="#stay" beginRegion="Brace" /> <DetectChar char="}" attribute="Symbol" context="#stay" endRegion="Brace" /> <DetectChar char=""" attribute="String" context="String"/> @@ -223,6 +224,7 @@ <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> |
