helix icon indicating copy to clipboard operation
helix copied to clipboard

Inject markdown syntax for rust doc_comments

Open A-Walrus opened this issue 3 years ago • 3 comments

Describe your feature request

Since rust doc comments support markdown it would be nice to highlight it as such. Especially useful for code within doc comments for which the language should be injected into the markdown which is injected into rust.

A-Walrus avatar Aug 11 '22 10:08 A-Walrus

If implemented I would prefer this to be optional. Having full markdown highlighting in comments would probably distract me a lot from the actual code.

CptPotato avatar Aug 11 '22 12:08 CptPotato

https://github.com/tree-sitter/tree-sitter-rust/issues/130

kirawi avatar Aug 11 '22 23:08 kirawi

https://github.com/tree-sitter/tree-sitter-rust/pull/168 looks promising for this. It works the same as https://github.com/helix-editor/helix/pull/4870

the-mikedavis avatar Dec 11 '22 20:12 the-mikedavis