From 57c52bd39732bb910f3e0cb3b39acbf8ef8f5d69 Mon Sep 17 00:00:00 2001
From: George Fraser <george@fivetran.com>
Date: Tue, 12 May 2020 08:31:43 -0700
Subject: Use .rust suffix on scopes

---
 editors/code/package.json        | 18 +++++++++---------
 editors/code/rust.tmGrammar.json |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

(limited to 'editors/code')

diff --git a/editors/code/package.json b/editors/code/package.json
index f46684c76..e51f1105b 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -595,34 +595,34 @@
                 "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"
                     ]
                 }
             }
diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json
index 27982c13a..aa0811326 100644
--- a/editors/code/rust.tmGrammar.json
+++ b/editors/code/rust.tmGrammar.json
@@ -597,7 +597,7 @@
 		},
 		"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": {
-- 
cgit v1.2.3