diff options
author | George Fraser <[email protected]> | 2020-05-09 20:57:32 +0100 |
---|---|---|
committer | George Fraser <[email protected]> | 2020-05-10 21:07:28 +0100 |
commit | 60e8e56dfad5d8066246bf8b2e587f0867b79d8c (patch) | |
tree | 0e1917fae286f2f94f8ae0e151661509200d3b99 | |
parent | 0881c889bf728a0e151c828cff93116d14769158 (diff) |
Color core types as types, not keywords
-rw-r--r-- | editors/code/rust.tmGrammar.json | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ | |||
600 | }, | 600 | }, |
601 | "core_types": { | 601 | "core_types": { |
602 | "comment": "Built-in/core type", | 602 | "comment": "Built-in/core type", |
603 | "name": "storage.type.core.rust", | 603 | "name": "entity.name.type.core.rust", |
604 | "match": "\\b(bool|char|usize|isize|u8|u16|u32|u64|u128|i8|i16|i32|i64|i128|f32|f64|str|Self|Option|Result)\\b" | 604 | "match": "\\b(bool|char|usize|isize|u8|u16|u32|u64|u128|i8|i16|i32|i64|i128|f32|f64|str|Self|Option|Result)\\b" |
605 | }, | 605 | }, |
606 | "core_vars": { | 606 | "core_vars": { |
@@ -610,22 +610,22 @@ | |||
610 | }, | 610 | }, |
611 | "core_marker": { | 611 | "core_marker": { |
612 | "comment": "Core trait (marker)", | 612 | "comment": "Core trait (marker)", |
613 | "name": "support.type.marker.rust", | 613 | "name": "entity.name.type.marker.rust", |
614 | "match": "\\b(Copy|Send|Sized|Sync)\\b" | 614 | "match": "\\b(Copy|Send|Sized|Sync)\\b" |
615 | }, | 615 | }, |
616 | "core_traits": { | 616 | "core_traits": { |
617 | "comment": "Core trait", | 617 | "comment": "Core trait", |
618 | "name": "support.type.core.rust", | 618 | "name": "entity.name.type.core.rust", |
619 | "match": "\\b(Drop|Fn|FnMut|FnOnce|Clone|PartialEq|PartialOrd|Eq|Ord|AsRef|AsMut|Into|From|Default|Iterator|Extend|IntoIterator|DoubleEndedIterator|ExactSizeIterator)\\b" | 619 | "match": "\\b(Drop|Fn|FnMut|FnOnce|Clone|PartialEq|PartialOrd|Eq|Ord|AsRef|AsMut|Into|From|Default|Iterator|Extend|IntoIterator|DoubleEndedIterator|ExactSizeIterator)\\b" |
620 | }, | 620 | }, |
621 | "std_types": { | 621 | "std_types": { |
622 | "comment": "Standard library type", | 622 | "comment": "Standard library type", |
623 | "name": "storage.class.std.rust", | 623 | "name": "entity.name.type.class.std.rust", |
624 | "match": "\\b(Box|String|Vec|Path|PathBuf)\\b" | 624 | "match": "\\b(Box|String|Vec|Path|PathBuf)\\b" |
625 | }, | 625 | }, |
626 | "std_traits": { | 626 | "std_traits": { |
627 | "comment": "Standard library trait", | 627 | "comment": "Standard library trait", |
628 | "name": "support.type.std.rust", | 628 | "name": "entity.name.type.std.rust", |
629 | "match": "\\b(ToOwned|ToString)\\b" | 629 | "match": "\\b(ToOwned|ToString)\\b" |
630 | }, | 630 | }, |
631 | "type": { | 631 | "type": { |