Skip to content

Highlight scripts in multiline comments #47

@pinpox

Description

@pinpox

Hey, is there a way to syntax-highlitht scripts in multi-line comments? E.g. I have yaml files like this:

- foo:
  - bar: [ "baz" ]
- this:
  - |
    #!/bin/sh
    echo "test" $(var)
    cat /dev/null

And would ilke the string to be highlighted with bash highlighting. I think this is referred to as injected or fenced languages in tree-sitter (reference)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions