this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc/ref: mention that newlines can be escaped in multiline strings

This behaviour mirrors the behaviour of multiline strings in Swift.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Iac15f3d0ba050e9f5d12dd388504eb8723939e27
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/537299
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>

authored by

Roger Peppe and committed by
Marcel van Lohuizen
13918dde 2caf6e0f

+6 -1
+6 -1
doc/ref/spec.md
··· 427 427 The escape `\(` is used as an escape for string interpolation. 428 428 A `\(` must be followed by a valid CUE Expression, followed by a `)`. 429 429 430 + A backslash at the end of a line elides the line terminator that follows it. 431 + This may not escape the final newline inside a multiline string: that 432 + newline is already implicitly elided. 433 + 430 434 All other sequences starting with a backslash are illegal inside literals. 431 435 432 436 ``` ··· 516 520 out of itself 517 521 518 522 bass 519 - picking bugs 523 + picking \ 524 + bugs 520 525 off the moon 521 526 — Nick Virgilio, Selected Haiku, 1988 522 527 """