Add support for theme family-specific syntax mapping overrides (#3551)

This PR adds support for adding a specific set of mappings from Zed
syntax tokens to VS Code scopes for a particular theme family.

We can use this as a fallback when we aren't otherwise able to rely on
the mappings in the theme importer, as sometimes it isn't possible to
make a specific enough matcher that works across all of the themes.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2023-12-07 23:37:49 -05:00
committed by GitHub
parent 5b96ffbbd1
commit 7a9f764aa0
6 changed files with 42 additions and 11 deletions
+3 -3
View File
@@ -106,7 +106,7 @@ pub fn rose_pine() -> UserThemeFamily {
(
"function".into(),
UserHighlightStyle {
color: Some(rgba(0xe0def4ff).into()),
color: Some(rgba(0xebbcbaff).into()),
..Default::default()
},
),
@@ -283,7 +283,7 @@ pub fn rose_pine() -> UserThemeFamily {
(
"function".into(),
UserHighlightStyle {
color: Some(rgba(0xe0def4ff).into()),
color: Some(rgba(0xea9a97ff).into()),
..Default::default()
},
),
@@ -460,7 +460,7 @@ pub fn rose_pine() -> UserThemeFamily {
(
"function".into(),
UserHighlightStyle {
color: Some(rgba(0x575279ff).into()),
color: Some(rgba(0xd7827eff).into()),
..Default::default()
},
),