From f1ec88cc56c0bb24c56e6f9f898ac567ce34c79f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Thu, 23 May 2019 13:26:38 +0300 Subject: Improve highlighting of name refs --- editors/code/package.json | 47 +++++++++++++++++++++++++++++++++++++++- editors/code/src/highlighting.ts | 7 +++++- 2 files changed, 52 insertions(+), 2 deletions(-) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 750c97bb1..cde5fbcb8 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -371,12 +371,57 @@ }, { "id": "ralsp.macro", - "description": "Color for DFAF8F", + "description": "Color for macros", "defaults": { "dark": "#BFEBBF", "light": "#DD6718", "highContrast": "#ED7718" } + }, + { + "id": "ralsp.constant", + "description": "Color for constants", + "defaults": { + "dark": "#569cd6", + "light": "#267cb6", + "highContrast": "#569cd6" + } + }, + { + "id": "ralsp.type", + "description": "Color for types", + "defaults": { + "dark": "#4EC9B0", + "light": "#267F99", + "highContrast": "#4EC9B0" + } + }, + { + "id": "ralsp.field", + "description": "Color for fields", + "defaults": { + "dark": "#4EC9B0", + "light": "#267F99", + "highContrast": "#4EC9B0" + } + }, + { + "id": "ralsp.variable", + "description": "Color for variables", + "defaults": { + "dark": "#4EC9B0", + "light": "#267F99", + "highContrast": "#4EC9B0" + } + }, + { + "id": "ralsp.module", + "description": "Color for modules", + "defaults": { + "dark": "#D4D4D4", + "light": "#000000", + "highContrast": "#FFFFFF" + } } ] } diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index e1a68544a..8389d94b8 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts @@ -33,11 +33,16 @@ export class Highlighter { colorContrib('keyword.unsafe'), colorContrib('function'), colorContrib('parameter'), + colorContrib('constant'), + colorContrib('type'), colorContrib('builtin'), colorContrib('text'), colorContrib('attribute'), colorContrib('literal'), - colorContrib('macro') + colorContrib('macro'), + colorContrib('variable'), + colorContrib('field'), + colorContrib('module') ]; return new Map(decorations); -- cgit v1.2.3