Skip to content

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

@alexmozaidze

Description

@alexmozaidze

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions