From 358b9d685fc289e0ad2bff5cb0508e8ad383b7ff Mon Sep 17 00:00:00 2001 From: eaglgenes101 Date: Thu, 20 Feb 2020 12:40:12 -0500 Subject: Improved compatibility with themes --- editors/code/src/highlighting.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'editors/code/src/highlighting.ts') diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index c4d286aef..b34e49c17 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts @@ -233,16 +233,16 @@ const TAG_TO_SCOPES = new Map([ ["type", ["entity.name.type"]], ["type.builtin", ["entity.name.type", "support.type.primitive"]], ["type.self", ["entity.name.type.parameter.self"]], - ["type.param", ["entity.name.type.parameter"]], - ["type.lifetime", ["entity.name.type.lifetime"]], + ["type.param", ["entity.name.type.parameter", "entity.name.type.param.rust"]], + ["type.lifetime", ["entity.name.type.lifetime", "entity.name.lifetime.rust"]], ["literal.byte", ["constant.character.byte"]], - ["literal.char", ["constant.character"]], + ["literal.char", ["constant.character.rust"]], ["literal.numeric", ["constant.numeric"]], ["comment", ["comment"]], ["string", ["string.quoted"]], - ["attribute", ["meta.attribute"]], + ["attribute", ["meta.attribute.rust"]], ["keyword", ["keyword"]], ["keyword.unsafe", ["keyword.other.unsafe"]], -- cgit v1.2.3