Skip to content

''\x not highlighted correctly in intended string #200

@andersk

Description

@andersk

In Nix ''\ may be followed by any character, not just n/r/t:

Linefeed, carriage-return and tab characters can be written as ''\n, ''\r, ''\t, and ''\ escapes any other character.

One use case is described at NixOS/nix#1416 (comment).

However, nix-mode only special-cases ''\n, ''\r, ''\t, and incorrectly highlights ''\x as if it ends the string.

(Related: #81, fixed by #157.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions