Add fallback to constant tokens for numbers
This commit is contained in:
parent
ab5b76e943
commit
62155f3a88
3 changed files with 50 additions and 0 deletions
|
@ -167,6 +167,7 @@ impl ZedSyntaxToken {
|
|||
pub fn fallbacks(&self) -> &[Self] {
|
||||
match self {
|
||||
ZedSyntaxToken::CommentDoc => &[ZedSyntaxToken::Comment],
|
||||
ZedSyntaxToken::Number => &[ZedSyntaxToken::Constant],
|
||||
ZedSyntaxToken::VariableSpecial => &[ZedSyntaxToken::Variable],
|
||||
ZedSyntaxToken::PunctuationBracket
|
||||
| ZedSyntaxToken::PunctuationDelimiter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue