summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Ciężarkiewicz <dpc@dpc.pw>2019-05-17 20:26:30 -0700
committerGitHub <noreply@github.com>2019-05-17 20:26:30 -0700
commitd4b57b5b00b60e717a0f007c02c95d8d080dd724 (patch)
tree4d8f7e2ae06ab0c98f0bd8cd70a84e9240a510bb
parent6a65415a19768e3de700d31715f74cb5255a6e32 (diff)
rust: Highlight async/await keywords
-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 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