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
16 lines
327 B
Nix
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"
|
|
"$\"$\""
|
|
"$"
|
|
]
|