mirror of
https://github.com/apple/pkl.git
synced 2026-05-25 16:19:20 +02:00
SPICE-0028: Add support for multi-line string line continuations (#1507)
SPICE: https://github.com/apple/pkl-evolution/pull/31
This commit is contained in:
+20
@@ -48,6 +48,26 @@ quux {
|
||||
"""
|
||||
}
|
||||
|
||||
// line continuations
|
||||
corge {
|
||||
|
||||
"""
|
||||
hello \
|
||||
world
|
||||
"""
|
||||
|
||||
#"""
|
||||
hello \#
|
||||
world
|
||||
"""#
|
||||
|
||||
"""
|
||||
hello \
|
||||
\
|
||||
world
|
||||
"""
|
||||
}
|
||||
|
||||
obj {
|
||||
data {
|
||||
["bar"] = """
|
||||
|
||||
+19
@@ -52,6 +52,25 @@ quux {
|
||||
"""
|
||||
}
|
||||
|
||||
// line continuations
|
||||
corge {
|
||||
"""
|
||||
hello \
|
||||
world
|
||||
"""
|
||||
|
||||
#"""
|
||||
hello \#
|
||||
world
|
||||
"""#
|
||||
|
||||
"""
|
||||
hello \
|
||||
\
|
||||
world
|
||||
"""
|
||||
}
|
||||
|
||||
obj {
|
||||
data {
|
||||
["bar"] =
|
||||
|
||||
Reference in New Issue
Block a user