Improve matching for punctuation tokens
This commit is contained in:
parent
53d77b192a
commit
a8a5b9524d
10 changed files with 729 additions and 5 deletions
|
@ -168,6 +168,10 @@ impl ZedSyntaxToken {
|
|||
match self {
|
||||
ZedSyntaxToken::CommentDoc => &[ZedSyntaxToken::Comment],
|
||||
ZedSyntaxToken::VariableSpecial => &[ZedSyntaxToken::Variable],
|
||||
ZedSyntaxToken::PunctuationBracket
|
||||
| ZedSyntaxToken::PunctuationDelimiter
|
||||
| ZedSyntaxToken::PunctuationListMarker
|
||||
| ZedSyntaxToken::PunctuationSpecial => &[ZedSyntaxToken::Punctuation],
|
||||
_ => &[],
|
||||
}
|
||||
}
|
||||
|
@ -224,7 +228,6 @@ impl ZedSyntaxToken {
|
|||
"punctuation.section",
|
||||
"punctuation.accessor",
|
||||
"punctuation.separator",
|
||||
"punctuation.terminator",
|
||||
"punctuation.definition.tag",
|
||||
],
|
||||
ZedSyntaxToken::PunctuationBracket => vec![
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue