Open andersk opened 4 months ago
In Nix ''\ may be followed by any character, not just n/r/t:
''\
n
r
t
Linefeed, carriage-return and tab characters can be written as ''\n, ''\r, ''\t, and ''\ escapes any other character.
''\n
''\r
''\t
One use case is described at https://github.com/NixOS/nix/issues/1416#issuecomment-335173637.
However, nix-mode only special-cases ''\n, ''\r, ''\t, and incorrectly highlights ''\x as if it ends the string.
''\x
(Related: #81, fixed by #157.)
In Nix
''\
may be followed by any character, not justn
/r
/t
:One use case is described at https://github.com/NixOS/nix/issues/1416#issuecomment-335173637.
However, nix-mode only special-cases
''\n
,''\r
,''\t
, and incorrectly highlights''\x
as if it ends the string.(Related: #81, fixed by #157.)