Skip to content
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

Highlight Rust doc comments with markdown #9695

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

the-mikedavis
Copy link
Member

tree-sitter-rust recently added nodes for doc comments and we can inject in markdown. This is waiting on a few fixes/refactors in tree-sitter/tree-sitter-rust#212

@the-mikedavis the-mikedavis added S-waiting-on-pr Status: This is waiting on another PR to be merged first A-language-support Area: Support for programming/text languages labels Feb 21, 2024
The test changes are needed because of the changes to comment parsing.
The `1..36` to `1..37` change is because line comments now consume the
newline.
@the-mikedavis the-mikedavis added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-pr Status: This is waiting on another PR to be merged first labels Apr 5, 2024
@the-mikedavis
Copy link
Member Author

tree-sitter/tree-sitter-rust#212 was merged upstream. We might want to try to solve #6491 before merging this though: it's fairly easy to reproduce once you inject markdown into line comments and annoying when it happens if you have comments styled with italics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant