diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2021-12-03 21:59:34 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2021-12-03 21:59:34 +0100 |
| commit | 90e9a49cb90eb800e9029a68ab17f8b66e1d2e0c (patch) | |
| tree | ee3c4bb30603038381a19275dfada5f8262b2323 | |
| parent | 4691a0647b2c96cc475d8bbe7c31fe194d1443e7 (diff) | |
| download | rust-90e9a49cb90eb800e9029a68ab17f8b66e1d2e0c.tar.gz rust-90e9a49cb90eb800e9029a68ab17f8b66e1d2e0c.zip | |
Define missing semantic token hierarchies in package.json
| -rw-r--r-- | editors/code/package.json | 129 |
1 files changed, 88 insertions, 41 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index d10cea82374..85fbbdea8f4 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -1117,89 +1117,136 @@ ], "semanticTokenTypes": [ { + "id": "angle", + "description": "Style for < or >", + "superType": "punctuation" + }, + { + "id": "arithmetic", + "description": "Style for arithmetic operators", + "superType": "operator" + }, + { "id": "attribute", "description": "Style for attributes" }, { + "id": "bitwise", + "description": "Style for bitwise operators", + "superType": "operator" + }, + { "id": "boolean", "description": "Style for boolean literals", "superType": "keyword" }, { + "id": "brace", + "description": "Style for { or }", + "superType": "punctuation" + }, + { + "id": "bracket", + "description": "Style for [ or ]", + "superType": "punctuation" + }, + { + "id": "builtinAttribute", + "description": "Style for builtin attributes", + "superType": "attribute" + }, + { "id": "builtinType", "description": "Style for builtin types", "superType": "type" }, { - "id": "lifetime", - "description": "Style for lifetimes" + "id": "char", + "description": "Style for character literals", + "superType": "type" }, { - "id": "selfKeyword", - "description": "Style for the self keyword", - "superType": "keyword" + "id": "colon", + "description": "Style for :", + "superType": "punctuation" }, { - "id": "typeAlias", - "description": "Style for type aliases", - "superType": "type" + "id": "comma", + "description": "Style for ,", + "superType": "punctuation" }, { - "id": "union", - "description": "Style for C-style untagged unions", - "superType": "type" + "id": "comparison", + "description": "Style for comparison operators", + "superType": "operator" }, { - "id": "unresolvedReference", - "description": "Style for names which can not be resolved due to compilation errors" + "id": "constParameter", + "description": "Style for const generics" + }, + { + "id": "dot", + "description": "Style for .", + "superType": "punctuation" + }, + { + "id": "escapeSequence", + "description": "Style for char escapes in strings" }, { "id": "formatSpecifier", "description": "Style for {} placeholders in format strings" }, { - "id": "punctuation", - "description": "generic punctuation" + "id": "label", + "description": "Style for labels" }, { - "id": "parenthesis", - "description": "( or )", - "superType": "punctuation" + "id": "lifetime", + "description": "Style for lifetimes" }, { - "id": "bracket", - "description": "[ or ]", - "superType": "punctuation" + "id": "logical", + "description": "Style for logic operators", + "superType": "operator" }, { - "id": "brace", - "description": "{ or }", + "id": "operator", + "description": "Style for operators", "superType": "punctuation" }, { - "id": "angle", - "description": "< or >", + "id": "parenthesis", + "description": "Style for ( or )", "superType": "punctuation" }, { - "id": "comma", - "description": ",", - "superType": "punctuation" + "id": "punctuation", + "description": "Style for generic punctuation" }, { - "id": "colon", - "description": ":", - "superType": "punctuation" + "id": "selfKeyword", + "description": "Style for the self keyword", + "superType": "keyword" }, { "id": "semicolon", - "description": ";", + "description": "Style for ;", "superType": "punctuation" }, { - "id": "dot", - "description": ".", - "superType": "punctuation" + "id": "typeAlias", + "description": "Style for type aliases", + "superType": "type" + }, + { + "id": "union", + "description": "Style for C-style untagged unions", + "superType": "type" + }, + { + "id": "unresolvedReference", + "description": "Style for names which can not be resolved due to compilation errors" } ], "semanticTokenModifiers": [ @@ -1212,14 +1259,14 @@ "description": "Style for elements within attributes" }, { - "id": "constant", - "description": "Style for compile-time constants" - }, - { "id": "callable", "description": "Style for locals whose types implements one of the `Fn*` traits" }, { + "id": "constant", + "description": "Style for compile-time constants" + }, + { "id": "consuming", "description": "Style for locals that are being consumed when use in a function call" }, @@ -1228,8 +1275,8 @@ "description": "Style for control-flow related tokens, this includes the `?` operator" }, { - "id": "definition", - "description": "Style for mutable bindings" + "id": "crateRoot", + "description": "Style for names resolving to a crate root" }, { "id": "injected", |
