-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject markdown syntax for rust doc_comments #3391
Comments
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. |
tree-sitter/tree-sitter-rust#168 looks promising for this. It works the same as #4870 |
As mentioned in #9695 this is now possible with a change to the grammar which was merged upstream. There's a bug in the highlighter though #6491 that makes injecting markdown very noisy. That should be fixed when we switch over to the new highlighter @pascalkuthe is working on (tracked in #10286) and then we should be able to enable markdown injections for rust doc 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.
The text was updated successfully, but these errors were encountered: