tree-sitter-rust icon indicating copy to clipboard operation
tree-sitter-rust copied to clipboard

Doc strings parser

Open GrayJack opened this issue 5 years ago • 6 comments

It would be a nice enhancement if doc string comments would be parsed, to provide better highlights when documenting code

GrayJack avatar Jun 11 '19 21:06 GrayJack

@GrayJack

I think it would be better to differentiate /// from // because they are assigned to the same token

Luni-4 avatar Jul 22 '20 15:07 Luni-4

I was talking about in doc comments be able to highlight the code inside the code block, adding a injection point

GrayJack avatar Jul 22 '20 15:07 GrayJack

Oops, sorry, misunderstood the "parser" word used in this issue, I would open another one for my problem then :)

Luni-4 avatar Jul 22 '20 15:07 Luni-4

Well, I think we could think on both as the same problem, I have no problem with that

GrayJack avatar Jul 22 '20 17:07 GrayJack

Yep, I agree :)

Luni-4 avatar Jul 22 '20 19:07 Luni-4

Maybe if injecting markdown in the /// blocks since docs in rust are markdown.

augustocdias avatar Jan 07 '22 10:01 augustocdias

Duplicate of https://github.com/tree-sitter/tree-sitter-rust/issues/175.

Chris00 avatar Dec 24 '23 10:12 Chris00

Closed by #195

clason avatar Feb 16 '24 09:02 clason