Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add fallback to constant tokens for numbers
Marshall Bowers62155f3a88f5
diff --git a/crates/theme2/src/themes/dracula.rs b/crates/theme2/src/themes/dracula.rsindex 27bc05c64a9..855698b4711 100644--- a/crates/theme2/src/themes/dracula.rs+++ b/crates/theme2/src/themes/dracula.rs@@ -156,6 +156,13 @@ pub fn dracula() -> UserThemeFamily {..Default::default()},),+ (+ "number".into(),+ UserHighlightStyle {+ color: Some(rgba(0xbd93f9ff).into()),+ ..Default::default()+ },+ ),("string".into(),UserHighlightStyle {diff --git a/crates/theme2/src/themes/gruvbox.rs b/crates/theme2/src/themes/gruvbox.rsindex 79efc431091..d961c661a33 100644--- a/crates/theme2/src/themes/gruvbox.rs+++ b/crates/theme2/src/themes/gruvbox.rs@@ -152,6 +152,13 @@ pub fn gruvbox() -> UserThemeFamily {..Default::default()},),+ (+ "number".into(),+ UserHighlightStyle {+ color: Some(rgba(0xd3869bff).into()),+ ..Default::default()+ },+ ),("operator".into(),UserHighlightStyle {@@ -427,6 +434,13 @@ pub fn gruvbox() -> UserThemeFamily {..Default::default()},),+ (+ "number".into(),+ UserHighlightStyle {+ color: Some(rgba(0xd3869bff).into()),+ ..Default::default()+ },+ ),("operator".into(),UserHighlightStyle {@@ -702,6 +716,13 @@ pub fn gruvbox() -> UserThemeFamily {..Default::default()},),+ (+ "number".into(),+ UserHighlightStyle {+ color: Some(rgba(0xd3869bff).into()),+ ..Default::default()+ },+ ),("operator".into(),UserHighlightStyle {@@ -977,6 +998,13 @@ pub fn gruvbox() -> UserThemeFamily {..Default::default()},),+ (+ "number".into(),+ UserHighlightStyle {+ color: Some(rgba(0x8f3f71ff).into()),+ ..Default::default()+ },+ ),("operator".into(),UserHighlightStyle {@@ -1252,6 +1280,13 @@ pub fn gruvbox() -> UserThemeFamily {..Default::default()},),+ (+ "number".into(),+ UserHighlightStyle {+ color: Some(rgba(0x8f3f71ff).into()),+ ..Default::default()+ },+ ),("operator".into(),UserHighlightStyle {@@ -1527,6 +1562,13 @@ pub fn gruvbox() -> UserThemeFamily {..Default::default()},),+ (+ "number".into(),+ UserHighlightStyle {+ color: Some(rgba(0x8f3f71ff).into()),+ ..Default::default()+ },+ ),("operator".into(),UserHighlightStyle {diff --git a/crates/theme_importer/src/vscode/syntax.rs b/crates/theme_importer/src/vscode/syntax.rsindex 262bd81f775..f055fc35510 100644--- a/crates/theme_importer/src/vscode/syntax.rs+++ b/crates/theme_importer/src/vscode/syntax.rs@@ -167,6 +167,7 @@ impl ZedSyntaxToken {pub fn fallbacks(&self) -> &[Self] {match self {ZedSyntaxToken::CommentDoc => &[ZedSyntaxToken::Comment],+ ZedSyntaxToken::Number => &[ZedSyntaxToken::Constant],ZedSyntaxToken::VariableSpecial => &[ZedSyntaxToken::Variable],ZedSyntaxToken::PunctuationBracket| ZedSyntaxToken::PunctuationDelimiter