From d4b57b5b00b60e717a0f007c02c95d8d080dd724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Ci=C4=99=C5=BCarkiewicz?= Date: Fri, 17 May 2019 20:26:30 -0700 Subject: [PATCH] rust: Highlight async/await keywords --- rc/filetype/rust.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/rust.kak b/rc/filetype/rust.kak index e83caf4f..50559b78 100644 --- a/rc/filetype/rust.kak +++ b/rc/filetype/rust.kak @@ -54,7 +54,7 @@ add-highlighter shared/rust/code/ regex \b(?:&&|\|\|)\b 0:operator # the language keywords are defined here, but many of them are reserved and unused yet: # https://doc.rust-lang.org/grammar.html#keywords add-highlighter shared/rust/code/ regex (?:#!?\[.*?\]) 0:meta -add-highlighter shared/rust/code/ regex \b(?:let|as|fn|return|match|if|else|loop|for|in|while|break|continue|move|box|where|impl|dyn|pub|unsafe)\b 0:keyword +add-highlighter shared/rust/code/ regex \b(?:let|as|fn|return|match|if|else|loop|for|in|while|break|continue|move|box|where|impl|dyn|pub|unsafe|async|await)\b 0:keyword add-highlighter shared/rust/code/ regex \b(?:trait|struct|enum|type|mut|ref|static|const)\b 0:attribute add-highlighter shared/rust/code/ 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/ regex \b(?:mod|crate|use|extern)\b 0:module