I'm using neovim with tree-sitter and treesitter-playground. I was hoping to highlight traits differently compared to struct. However, each node seems to be tagged the same way.
Generally (likely an aside), but traits are not types... dyn Traits on the other hand are. IMO it may be useful to maintain a distinction between all three (types, from Trait, from dyn Trait).
I'm using neovim with tree-sitter and treesitter-playground. I was hoping to highlight traits differently compared to struct. However, each node seems to be tagged the same way.
Here is a sample of the complete output using
:TSNodeUnderCursor
Generally (likely an aside), but
traits
are not types...dyn Traits
on the other hand are. IMO it may be useful to maintain a distinction between all three (types, fromTrait
, fromdyn Trait
).