From e9d6ceab0ba7ecddb06f7a7a6e6bee55cb68d3ec Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 26 Sep 2019 12:35:58 +0200 Subject: [PATCH] syntax: rust: add the words reserved in 2018, and remove unreserved ones See https://doc.rust-lang.org/reference/keywords.html, and https://rust-lang.github.io/rfcs/2421-unreservations-2018.html. Signed-off-by: Dirkjan Ochtman Signed-off-by: Benno Schulenberg --- syntax/rust.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/rust.nanorc b/syntax/rust.nanorc index aca2b9c4..ef114ec7 100644 --- a/syntax/rust.nanorc +++ b/syntax/rust.nanorc @@ -11,7 +11,7 @@ comment "//" color magenta "fn [a-z_0-9]+" # Reserved words -color yellow "\<(abstract|alignof|as|become|box|break|const|continue|crate|do|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|offsetof|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\>" +color yellow "\<(abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|static|self|struct|super|trait|true|try|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\>" # Macros color red "[a-z_]+!"