Improve matching for string tokens

This commit is contained in:
Marshall Bowers 2023-12-08 11:13:28 -05:00
parent a8a5b9524d
commit 40a95221ea
11 changed files with 718 additions and 0 deletions

View file

@ -172,6 +172,10 @@ impl ZedSyntaxToken {
| ZedSyntaxToken::PunctuationDelimiter
| ZedSyntaxToken::PunctuationListMarker
| ZedSyntaxToken::PunctuationSpecial => &[ZedSyntaxToken::Punctuation],
ZedSyntaxToken::StringEscape
| ZedSyntaxToken::StringRegex
| ZedSyntaxToken::StringSpecial
| ZedSyntaxToken::StringSpecialSymbol => &[ZedSyntaxToken::String],
_ => &[],
}
}