Improve matching for constructor tokens

This commit is contained in:
Marshall Bowers 2023-12-08 11:34:39 -05:00
parent 6634a5e9f6
commit 6f064cfc36
12 changed files with 249 additions and 1 deletions

View file

@ -188,7 +188,10 @@ impl ZedSyntaxToken {
ZedSyntaxToken::CommentDoc => vec!["comment.block.documentation"],
ZedSyntaxToken::Constant => vec!["constant", "constant.language", "constant.character"],
ZedSyntaxToken::Constructor => {
vec!["entity.name.function.definition.special.constructor"]
vec![
"entity.name.tag",
"entity.name.function.definition.special.constructor",
]
}
ZedSyntaxToken::Embedded => vec!["meta.embedded"],
ZedSyntaxToken::Emphasis => vec!["markup.italic"],