Skip to content

Highlighting inside injections breaks sometimes #20

@aldoborrero

Description

@aldoborrero

Mirrored from nix-community#45 by @musjj (opened 2023-08-21T11:49:17Z).

This issue is tracked here so the fork can work on it; upstream may not respond. Please add new context in this issue.


When trying to embed nix variables into multi-line strings with injected highlighting, the highlighting breaks if there are quotes ("/') near it:

embedded-3
embedded-2
embedded-1

This is especially annoying if you're trying to escape ${...} inside shell scripts by using double quotes (''):

embedded

Note that this issue doesn't happen outside of injections (e.g. bash files).

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