Files
lix/tests/functional2/lang/string/in.nix
T
piegames ae4a000576 deprecated-features/broken-string-escape: Improve warning message
Explicitly catch common errors (trying to escape line breaks, badly
escaping interpolations) to provide better messages and user guidance
for these cases.

Change-Id: I3dd1b2ad3bca33be393e65be5e72f4fb9544a46a
2026-02-11 12:24:35 +01:00

16 lines
327 B
Nix

[
("foo" + "bar")
(toString (/a/b + /c/d))
(toString (/foo/bar + "/../xyzzy/." + "/foo.txt"))
("/../foo" + toString /x/y)
"escape: \"quote\" \n \\"
"\${escaped interpolation}, $\{wrongly escaped interpolation}"
"end
of
line"
"foo${if true then "b${"a" + "r"}" else "xyzzy"}blaat"
"foo$bar"
"$\"$\""
"$"
]