Skip to content

Language Injection? #13

@colinxs

Description

@colinxs

What do you think about adding language injection for string and `indented_string to get syntax highlighting for embedded scripts? Here's what it looks like for a bash string:
image

That's with [ (string) (indented_string) ] @bash in injections.scm. I'm not sure how to auto-detect the language however. Looking at the docs that's what @language is for, but unlike e.g. Markdown there's no node with the language name. Is it possible to match based off of something like a shebang in the string?

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