lix/tests/lang/eval-okay-string.nix
Eelco Dolstra de90fdf908 * Allow "$" in strings as long as they are not followed by "{". (Too
bad flex doesn't have lexical restrictions, the current solution
  isn't quite right...)
2006-09-01 12:04:06 +00:00

11 lines
229 B
Nix

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