summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Wainwright <105280833+jwnrt@users.noreply.github.com>2022-11-01 21:29:07 +0000
committerJames Wainwright <105280833+jwnrt@users.noreply.github.com>2022-11-01 21:29:07 +0000
commit078e5900a4726b51c97bd2a9822e856db8a54e73 (patch)
tree648fb50b7c2133eaa61ee5e19a4d7ebb1be8581a
parent79321989c05185843a55b9928e9ee16a4cc561a3 (diff)
Add "union" as a keyword for Rust syntax
-rw-r--r--rc/filetype/rust.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/rust.kak b/rc/filetype/rust.kak
index 26e110e4..920ed2b4 100644
--- a/rc/filetype/rust.kak
+++ b/rc/filetype/rust.kak
@@ -86,7 +86,7 @@ add-highlighter shared/rust/code/question_mark regex \? 0:meta
add-highlighter shared/rust/code/function_call regex _?[a-zA-Z]\w*\s*(?=\() 0:function
add-highlighter shared/rust/code/generic_function_call regex _?[a-zA-Z]\w*\s*(?=::<) 0:function
add-highlighter shared/rust/code/function_declaration regex (?:fn\h+)(_?\w+)(?:<[^>]+?>)?\( 1:function
-add-highlighter shared/rust/code/keywords regex \b(?:as|break|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|pub|return|self|Self|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|try)\b 0:keyword
+add-highlighter shared/rust/code/keywords regex \b(?:as|break|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|pub|return|self|Self|struct|super|trait|true|type|union|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|try)\b 0:keyword
add-highlighter shared/rust/code/storage regex \b(move|mut|ref|static|const)\b 0:type
add-highlighter shared/rust/code/pub_with_scope regex \b(pub)\h*(\()\h*(crate|super|self|in\h+[\w:]+)\h*(\)) 1:keyword 2:meta 4:meta
# after let can be an arbitrary pattern match