mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-09 18:02:48 +00:00
Improve highlighting of name refs
This commit is contained in:
parent
4466568525
commit
f1ec88cc56
5 changed files with 222 additions and 12 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue