Improve matching for preprocessor tokens

This commit is contained in:
Marshall Bowers 2023-12-08 11:17:05 -05:00
parent 40a95221ea
commit 63ce7cd407
5 changed files with 145 additions and 1 deletions

View file

@ -219,7 +219,11 @@ impl ZedSyntaxToken {
ZedSyntaxToken::Number => vec!["constant.numeric", "number"],
ZedSyntaxToken::Operator => vec!["operator", "keyword.operator"],
ZedSyntaxToken::Predictive => vec![],
ZedSyntaxToken::Preproc => vec!["preproc"],
ZedSyntaxToken::Preproc => vec![
"preproc",
"meta.preprocessor",
"punctuation.definition.preprocessor",
],
ZedSyntaxToken::Primary => vec![],
ZedSyntaxToken::Property => vec![
"variable.member",