From be9091c60c8f3f71b684e779b7bdfaeb9116f8df Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 11 Dec 2024 11:37:58 +0100 Subject: [PATCH] Split enum uses, members and declarations --- themes/ShinyCode-color-theme.json | 35 ++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/themes/ShinyCode-color-theme.json b/themes/ShinyCode-color-theme.json index df00e87..b3f4a7d 100644 --- a/themes/ShinyCode-color-theme.json +++ b/themes/ShinyCode-color-theme.json @@ -124,10 +124,8 @@ { "name": "Function calls", "scope": [ - "meta.function.call entity.name.function", - "meta.function-call entity.name.function", - "string meta.function-call entity.name.function", - "string meta.function.call entity.name.function", + "entity.name.function", + "string entity.name.function", ], "settings": { "foreground": "#6E7D16", // action 50 @@ -137,7 +135,7 @@ { "name": "Interface declarations", "scope": [ - + "meta.interface entity.name.type.interface" ], "settings": { "foreground": "#308832", // behavior 70 @@ -179,6 +177,7 @@ { "name": "Type use", "scope": [ + "entity", "entity.name.type", "support.type.primitive", "meta.type.declaration meta.field.declaration entity.name.type", // over-over-ride type declaration for the contents of TypeScript types @@ -251,16 +250,36 @@ } }, { - "name": "Enums", + "name": "Enum use", "scope": [ "entity.name.enum", "entity.name.type.enum", ], "settings": { - "foreground": "#EEB4EA", + "foreground": "#A45CA5", "fontStyle": "", } + }, + { + "name": "Enum member", + "scope": [ + "variable.other.enummember" + ], + "settings": { + "foreground": "#A45CA5", + "fontStyle": "italic", + } + }, + { + "name": "Enum declaration", + "scope": [ + "meta.enum.declaration entity.name.type.enum", + ], + "settings": { + "foreground": "#DE90DD", + "fontStyle": "bold", + } } ], - "semanticHighlighting": true, + "semanticHighlighting": false, }