Improve highlighting of name refs

This commit is contained in:
Laurențiu Nicola 2019-05-23 13:26:38 +03:00
parent 4466568525
commit f1ec88cc56
5 changed files with 222 additions and 12 deletions

View file

@ -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"
}
}
]
}

View file

@ -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<string, vscode.TextEditorDecorationType>(decorations);