Fix semantic coloring

This commit is contained in:
Aleksey Kladov 2020-04-02 15:52:25 +02:00
parent 47a48505a5
commit 9ca69994af

View File

@ -521,65 +521,34 @@
"description": "Style for unsafe operations" "description": "Style for unsafe operations"
} }
], ],
"semanticTokenStyleDefaults": [ "semanticTokenScopes": [
{ {
"selector": "attribute", "language": "rust",
"scope": [ "scopes": {
"attribute": [
"meta.attribute" "meta.attribute"
] ],
}, "builtinType": [
{
"selector": "builtinType",
"scope": [
"support.type.primitive" "support.type.primitive"
] ],
}, "lifetime": [
{
"selector": "lifetime",
"scope": [
"entity.name.lifetime.rust" "entity.name.lifetime.rust"
] ],
}, "typeAlias": [
{
"selector": "typeAlias",
"scope": [
"entity.name.typeAlias" "entity.name.typeAlias"
] ],
}, "union": [
{
"selector": "union",
"scope": [
"entity.name.union" "entity.name.union"
] ],
}, "keyword.unsafe": [
{
"selector": "keyword.unsafe",
"scope": [
"keyword.other.unsafe" "keyword.other.unsafe"
] ],
}, "keyword.control": [
{
"selector": "keyword.control",
"scope": [
"keyword.control" "keyword.control"
] ],
}, "variable.constant": [
{
"selector": "variable.constant",
"scope": [
"entity.name.constant" "entity.name.constant"
] ]
},
{
"selector": "*.mutable",
"light": {
"fontStyle": "underline"
},
"dark": {
"fontStyle": "underline"
},
"highContrast": {
"fontStyle": "underline"
} }
} }
] ]