]> git.lizzy.rs Git - rust.git/commitdiff
Update `semanticTokenModifiers` in package.json
authorLukas Wirth <lukastw97@gmail.com>
Sat, 25 Sep 2021 12:10:46 +0000 (14:10 +0200)
committerLukas Wirth <lukastw97@gmail.com>
Sat, 25 Sep 2021 12:10:46 +0000 (14:10 +0200)
editors/code/package.json

index 5edfd4aa5f6eac0e4a328a029a265e35316ba654..541293ff121cbb0ef92e7358367027587e2cfebe 100644 (file)
             }
         ],
         "semanticTokenModifiers": [
+            {
+                "id": "async",
+                "description": "Style for async functions and the `async` and `await` keywords"
+            },
             {
                 "id": "attribute",
                 "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": "consuming",
+                "description": "Style for locals that are being consumed when use in a function call"
+            },
             {
                 "id": "controlFlow",
-                "description": "Style for control flow keywords"
+                "description": "Style for control-flow related tokens, this includes the `?` operator"
             },
             {
-                "id": "mutable",
+                "id": "definition",
                 "description": "Style for mutable bindings"
             },
             {
-                "id": "unsafe",
-                "description": "Style for unsafe operations"
+                "id": "injected",
+                "description": "Style for doc-string injected highlighting like rust source blocks in documentation"
             },
             {
-                "id": "consuming",
-                "description": "Style for non-Copy lvalues consumed by method/function call"
+                "id": "intraDocLink",
+                "description": "Style for intra doc links in doc-strings"
             },
             {
-                "id": "callable",
-                "description": "Style for variables/parameters that can be used in call expressions"
+                "id": "library",
+                "description": "Style for items that are defined outside of the current crate"
+            },
+            {
+                "id": "mutable",
+                "description": "Style for mutable locals and statics as well as functions taking `&mut self`"
+            },
+            {
+                "id": "public",
+                "description": "Style tems that are from the current crate and are `pub`"
+            },
+            {
+                "id": "reference",
+                "description": "Style for locals behind a reference and functions taking `self` by reference"
+            },
+            {
+                "id": "trait",
+                "description": "Style for associated trait items"
+            },
+            {
+                "id": "unsafe",
+                "description": "Style for unsafe operations, like unsafe function calls, as well as the `unsafe` token"
             }
         ],
         "semanticTokenScopes": [