mirror of
https://github.com/apple/pkl.git
synced 2026-03-31 22:23:18 +02:00
This forces iterpolated expressions to be single-line, so that newline literals within the bounds of two string delimiters can be seen as verbatime newlines in the resulting string. Edge case: in the case of a line comment, it's not possible to keep this as a single line expression. These are kept as multi-line expressions. Also: * Remove `ForceWrap`, this node is not used. * Rename `StringConstant` -> `StringChars`
32 lines
227 B
Plaintext
Vendored
32 lines
227 B
Plaintext
Vendored
foo =
|
|
"""
|
|
asd \(new { bar = 1 }) asd
|
|
"""
|
|
|
|
bar =
|
|
"""
|
|
line 1
|
|
line 2
|
|
line3
|
|
"""
|
|
|
|
baz =
|
|
"""
|
|
\n
|
|
\(bar)
|
|
line
|
|
\u{123}
|
|
"""
|
|
|
|
// remove unneeded spaces
|
|
qux =
|
|
"""
|
|
foo
|
|
|
|
bar
|
|
|
|
baz
|
|
|
|
\(foo)
|
|
"""
|