From 60e8e56dfad5d8066246bf8b2e587f0867b79d8c Mon Sep 17 00:00:00 2001 From: George Fraser Date: Sat, 9 May 2020 12:57:32 -0700 Subject: Color core types as types, not keywords --- editors/code/rust.tmGrammar.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'editors') diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json index 034038830..c14dc09ab 100644 --- a/editors/code/rust.tmGrammar.json +++ b/editors/code/rust.tmGrammar.json @@ -600,7 +600,7 @@ }, "core_types": { "comment": "Built-in/core type", - "name": "storage.type.core.rust", + "name": "entity.name.type.core.rust", "match": "\\b(bool|char|usize|isize|u8|u16|u32|u64|u128|i8|i16|i32|i64|i128|f32|f64|str|Self|Option|Result)\\b" }, "core_vars": { @@ -610,22 +610,22 @@ }, "core_marker": { "comment": "Core trait (marker)", - "name": "support.type.marker.rust", + "name": "entity.name.type.marker.rust", "match": "\\b(Copy|Send|Sized|Sync)\\b" }, "core_traits": { "comment": "Core trait", - "name": "support.type.core.rust", + "name": "entity.name.type.core.rust", "match": "\\b(Drop|Fn|FnMut|FnOnce|Clone|PartialEq|PartialOrd|Eq|Ord|AsRef|AsMut|Into|From|Default|Iterator|Extend|IntoIterator|DoubleEndedIterator|ExactSizeIterator)\\b" }, "std_types": { "comment": "Standard library type", - "name": "storage.class.std.rust", + "name": "entity.name.type.class.std.rust", "match": "\\b(Box|String|Vec|Path|PathBuf)\\b" }, "std_traits": { "comment": "Standard library trait", - "name": "support.type.std.rust", + "name": "entity.name.type.std.rust", "match": "\\b(ToOwned|ToString)\\b" }, "type": { -- cgit v1.2.3