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

[Feature Request] Integrate with tree-sitter-comment #73

Open
alexmozaidze opened this issue Dec 22, 2023 · 0 comments
Open

[Feature Request] Integrate with tree-sitter-comment #73

alexmozaidze opened this issue Dec 22, 2023 · 0 comments

Comments

@alexmozaidze
Copy link

alexmozaidze commented Dec 22, 2023

tree-sitter-comment is really nice when it comes to highlighting notes in comments, but there is no injection regarding it.

It would be nice to include something like the following in the injections file:

((comment) @injection.content
 (#set! injection.language "comment"))

Though, (comment) captures <!-- and -->, it seems to work pretty well as is. I reckon it would be good to have raw_text for comments as well, so that the comment tag delimiters are not captured.

EDIT: Adding raw_text to comment is most certainly a good idea if it is desired to minimize plugin breakage. ultimate-autopair doesn't recognize (and, thus, doesn't act upon) <!-- and --> because they are captured in the injection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant