]> git.lizzy.rs Git - rust.git/commitdiff
Use .rust suffix on scopes
authorGeorge Fraser <george@fivetran.com>
Tue, 12 May 2020 15:31:43 +0000 (08:31 -0700)
committerGeorge Fraser <george@fivetran.com>
Tue, 12 May 2020 15:31:43 +0000 (08:31 -0700)
editors/code/package.json
editors/code/rust.tmGrammar.json

index f46684c76570ce062311198bd77908cbfffe67bd..e51f1105bfb4aefca36bf6dfc49ce41049ccb177 100644 (file)
                 "language": "rust",
                 "scopes": {
                     "attribute": [
-                        "meta.attribute"
+                        "meta.attribute.rust"
                     ],
                     "builtinType": [
-                        "support.type.primitive"
+                        "support.type.primitive.rust"
                     ],
                     "lifetime": [
                         "storage.modifier.lifetime.rust"
                     ],
                     "typeAlias": [
-                        "entity.name.type.typeAlias"
+                        "entity.name.type.typeAlias.rust"
                     ],
                     "union": [
-                        "entity.name.type.union"
+                        "entity.name.type.union.rust"
                     ],
                     "struct": [
-                        "entity.name.type.struct"
+                        "entity.name.type.struct.rust"
                     ],
                     "keyword": [
-                        "keyword.other"
+                        "keyword.other.rust"
                     ],
                     "keyword.controlFlow": [
-                        "keyword.control"
+                        "keyword.control.rust"
                     ],
                     "variable.constant": [
-                        "variable.other.constant"
+                        "variable.other.constant.rust"
                     ],
                     "formatSpecifier": [
-                        "punctuation.section.embedded"
+                        "punctuation.section.embedded.rust"
                     ]
                 }
             }
index 27982c13a5015adc22dbffa0f1794fd17dd1a9a7..aa0811326a0e801bd606e7d370454857632c8950 100644 (file)
                },
                "core_types": {
                        "comment": "Built-in/core type",
-                       "name": "support.type.primitive",
+                       "name": "support.type.primitive.rust",
                        "match": "\\b(bool|char|usize|isize|u8|u16|u32|u64|u128|i8|i16|i32|i64|i128|f32|f64|str|Self)\\b"
                },
                "core_vars": {