tree-sitter-rust
tree-sitter-rust copied to clipboard
Separate regular comments from Doc Strings
It would be great if documentation comments made with ///
, //!
, etc. were matched to different nodes than normal comments. I'd like to be able treat them separately when doing syntax highlighting.
Bump
Is this project still being maintained?
it's maintained, but there's not much activity.
We accept PRs to fix issues though :)
In a similar vein, I'd like to be able to syntax highlight examples in doc strings. This is a feature of other highlighters. Is such a thing possible with tree-sitter?
See #128 which merges successive doc comments, which it seems would be a precondition to adding rust embeds for fenced code blocks in documentation.
This distinction will be done in Emacs. See also the duplicate issue https://github.com/tree-sitter/tree-sitter-rust/issues/175.