mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 18:41:56 +03:00
Improve matching for constant tokens
This commit is contained in:
parent
63ce7cd407
commit
1b6721170a
@ -104,7 +104,7 @@ pub fn ayu() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0x4cbf99ff).into()),
|
color: Some(rgba(0xa37accff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -393,7 +393,7 @@ pub fn ayu() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0x95e6cbff).into()),
|
color: Some(rgba(0xdfbfffff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -682,7 +682,7 @@ pub fn ayu() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0x95e6cbff).into()),
|
color: Some(rgba(0xd2a6ffff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -97,7 +97,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xbecfdaff).into()),
|
color: Some(rgba(0x7060ebff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -356,7 +356,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xcbbec2ff).into()),
|
color: Some(rgba(0x7060ebff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -615,7 +615,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0x004d57ff).into()),
|
color: Some(rgba(0x5842ffff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -874,7 +874,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0x0c006bff).into()),
|
color: Some(rgba(0x5842ffff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -1133,7 +1133,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0x004d57ff).into()),
|
color: Some(rgba(0x5842ffff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -1392,7 +1392,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xc5cdd3ff).into()),
|
color: Some(rgba(0x7068b1ff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -1651,7 +1651,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xb2cacdff).into()),
|
color: Some(rgba(0x7060ebff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -1910,7 +1910,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xb2cacdff).into()),
|
color: Some(rgba(0x7060ebff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -2169,7 +2169,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xb2cacdff).into()),
|
color: Some(rgba(0x7060ebff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -2428,7 +2428,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xc5c2d6ff).into()),
|
color: Some(rgba(0x7060ebff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -2687,7 +2687,7 @@ pub fn noctis() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xccbfd9ff).into()),
|
color: Some(rgba(0x7060ebff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -103,7 +103,7 @@ pub fn nord() -> UserThemeFamily {
|
|||||||
(
|
(
|
||||||
"constant".into(),
|
"constant".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
color: Some(rgba(0xebcb8bff).into()),
|
color: Some(rgba(0x81a1c1ff).into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -103,6 +103,13 @@ pub fn rose_pine() -> UserThemeFamily {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"constant".into(),
|
||||||
|
UserHighlightStyle {
|
||||||
|
color: Some(rgba(0xebbcbaff).into()),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"function".into(),
|
"function".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
@ -336,6 +343,13 @@ pub fn rose_pine() -> UserThemeFamily {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"constant".into(),
|
||||||
|
UserHighlightStyle {
|
||||||
|
color: Some(rgba(0xea9a97ff).into()),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"function".into(),
|
"function".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
@ -569,6 +583,13 @@ pub fn rose_pine() -> UserThemeFamily {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"constant".into(),
|
||||||
|
UserHighlightStyle {
|
||||||
|
color: Some(rgba(0xd7827eff).into()),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"function".into(),
|
"function".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
|
@ -85,6 +85,13 @@ pub fn synthwave_84() -> UserThemeFamily {
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"constant".into(),
|
||||||
|
UserHighlightStyle {
|
||||||
|
color: Some(rgba(0xf97e72ff).into()),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"function".into(),
|
"function".into(),
|
||||||
UserHighlightStyle {
|
UserHighlightStyle {
|
||||||
|
@ -186,7 +186,7 @@ impl ZedSyntaxToken {
|
|||||||
ZedSyntaxToken::Boolean => vec!["constant.language"],
|
ZedSyntaxToken::Boolean => vec!["constant.language"],
|
||||||
ZedSyntaxToken::Comment => vec!["comment"],
|
ZedSyntaxToken::Comment => vec!["comment"],
|
||||||
ZedSyntaxToken::CommentDoc => vec!["comment.block.documentation"],
|
ZedSyntaxToken::CommentDoc => vec!["comment.block.documentation"],
|
||||||
ZedSyntaxToken::Constant => vec!["constant.character"],
|
ZedSyntaxToken::Constant => vec!["constant.language", "constant.character"],
|
||||||
ZedSyntaxToken::Constructor => {
|
ZedSyntaxToken::Constructor => {
|
||||||
vec!["entity.name.function.definition.special.constructor"]
|
vec!["entity.name.function.definition.special.constructor"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user