summaryrefslogtreecommitdiff
path: root/rc/filetype
diff options
context:
space:
mode:
authorVladimir Bauer <vbauerster@gmail.com>2025-04-11 18:55:13 +0500
committerVladimir Bauer <vbauerster@gmail.com>2025-04-11 18:55:13 +0500
commit0e5ed571e08c2ad317333755974305ebb9c93be9 (patch)
tree85034cfbcd65b3c203bb9da5f25ac83611592070 /rc/filetype
parent922607221b8e5b2683babb9ebeba9372e97b836c (diff)
rc filetype rust: hl return as keyword
That line makes return keyword to highlight same color as macro plus bold which makes it look like a macro. I'm not sure if it was done on purpose but it's wrong. Return is the same keyword like any other so why make it look apart?
Diffstat (limited to 'rc/filetype')
-rw-r--r--rc/filetype/rust.kak1
1 files changed, 0 insertions, 1 deletions
diff --git a/rc/filetype/rust.kak b/rc/filetype/rust.kak
index 3aacc73a..e1906c45 100644
--- a/rc/filetype/rust.kak
+++ b/rc/filetype/rust.kak
@@ -98,7 +98,6 @@ add-highlighter shared/rust/code/char_character regex "'([^\\]|\\(.|x[0-
# TODO highlight error for unicode or single escape by te character
add-highlighter shared/rust/code/byte_character regex b'([\x00-\x5B\x5D-\x7F]|\\(.|x[0-9a-fA-F]{2}))' 0:value
add-highlighter shared/rust/code/builtin_types regex \b(?:u8|u16|u32|u64|u128|usize|i8|i16|i32|i64|i128|isize|f32|f64|bool|char|str|Self)\b 0:type
-add-highlighter shared/rust/code/return regex \breturn\b 0:meta
add-highlighter shared/rust/code/enum regex \b(Option|Result)\b 0:type
add-highlighter shared/rust/code/enum_variant regex \b(Some|None|Ok|Err)\b 0:value