From 46566d7a791d758447980a03b13fd79a76c76a0f Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sun, 10 May 2020 11:01:56 -0700 Subject: [PATCH] Color `as` as a keyword --- editors/code/rust.tmGrammar.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json index d275284478..6fe16d794f 100644 --- a/editors/code/rust.tmGrammar.json +++ b/editors/code/rust.tmGrammar.json @@ -159,7 +159,7 @@ { "comment": "Keyword", "name": "keyword.other.rust", - "match": "\\b(crate|extern|mod|let|ref|use|super|move)\\b" + "match": "\\b(crate|extern|mod|let|ref|use|super|move|as)\\b" }, { "comment": "Reserved keyword", @@ -202,7 +202,7 @@ { "comment": "Miscellaneous operator", "name": "keyword.operator.misc.rust", - "match": "(=>|::|\\bas\\b)" + "match": "(=>|::)" }, { "comment": "Comparison operator",