3363: Cleanup highlighting tags r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-02-28 13:48:42 +00:00 committed by GitHub
commit 2995fd2c87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 236 additions and 161 deletions

View file

@ -400,24 +400,42 @@
],
"semanticTokenTypes": [
{
"id": "attribute"
"id": "attribute",
"description": "Style for attributes"
},
{
"id": "constant"
"id": "builtinType",
"description": "Style for builtin types"
},
{
"id": "lifetime",
"description": "Style for lifetimes"
},
{
"id": "typeAlias",
"description": "Style for type aliases"
},
{
"id": "union",
"description": "Style for C-style untagged unions"
}
],
"semanticTokenModifiers": [
{
"id": "mutable"
"id": "constant",
"description": "Style for compile-time constants"
},
{
"id": "unsafe"
"id": "control",
"description": "Style for control flow keywords"
},
{
"id": "control"
"id": "mutable",
"description": "Style for mutable bindings"
},
{
"id": "builtin"
"id": "unsafe",
"description": "Style for unsafe operations"
}
],
"semanticTokenStyleDefaults": [
@ -427,6 +445,50 @@
"meta.attribute"
]
},
{
"selector": "builtinType",
"scope": [
"support.type.primitive"
]
},
{
"selector": "lifetime",
"scope": [
"entity.name.lifetime.rust"
]
},
{
"selector": "typeAlias",
"scope": [
"entity.name.type",
"entity.name.typeAlias"
]
},
{
"selector": "union",
"scope": [
"entity.name.type",
"entity.name.union"
]
},
{
"selector": "keyword.unsafe",
"scope": [
"keyword.other.unsafe"
]
},
{
"selector": "keyword.control",
"scope": [
"keyword.control"
]
},
{
"selector": "variable.constant",
"scope": [
"entity.name.constant"
]
},
{
"selector": "*.mutable",
"light": {
@ -438,24 +500,6 @@
"highContrast": {
"fontStyle": "underline"
}
},
{
"selector": "constant",
"scope": [
"entity.name.constant"
]
},
{
"selector": "keyword.unsafe",
"scope": [
"keyword.other.unsafe"
]
},
{
"selector": "type.builtin",
"scope": [
"support.type.builtin"
]
}
]
}