-
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels