Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andersk opened this issue May 18, 2024 · 0 comments
Open

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

andersk opened this issue May 18, 2024 · 0 comments

Comments

@andersk
Copy link

andersk commented May 18, 2024

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant