Closed koka831 closed 2 years ago
This sounds reasonable, thanks!
For posterity, could you please share a screenshot showcasing in what context these hightlights are being used?
Thank you for review! is it okay?:)
FWIW before https://github.com/nvim-treesitter/nvim-treesitter/commit/00b42ac6d4c852d34619eaf2ea822266588d75e3 @type.qualifier
like mut
keyword is highlighted in Red, so I chose colors to remain the same before.
Thanks for the screenshot!
Last request for opinion from @sainnhe before merging: since red is already widely used for identifiers, maybe you would like to apply a different color to these qualifier and definition symbols? Same highlight as Type
maybe?
@antoineco I updated them to yellow so I'll squash if it's necessary.
That actually not only looks better now, but it's also fitting the semantics :+1:
No need to squash, GitHub will do it!
IMO orange might be better, I use orange in operators and modifiers.
This PR adds
@type.definition
and@type.qualifier
, that are used for Rust (at least, from https://github.com/nvim-treesitter/nvim-treesitter/commit/00b42ac6d4c852d34619eaf2ea822266588d75e3).