3827: Fix semantic coloring r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-04-02 13:52:54 +00:00 committed by GitHub
commit bda471a636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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