The last string form combines multiline spanning with literal, no-escape semantics. Today you parse a multiline literal string, delimited by three single quotes, for raw multi-line text.
Parse a triple-single-quoted multiline literal string with no escaping.
The fourth and final string form is the multiline literal string, delimited by
three single quotes '''. It is the union of two rules you already know: it may
span many lines like a multiline basic string, and it processes no escapes like
a single-line literal string. That makes it ideal for raw blocks of text - a code
snippet, a regular expression across lines - where you want exactly the characters
typed.
It borrows one trimming rule from the multiline basic string: a newline right
after the opening ''' is trimmed, so the opener can sit on its own line. It does
not borrow the line-ending backslash trim, because backslashes are not special
here at all. So ''' then a newline then first\nsecond then a newline then '''
yields first\nsecond\n where the \n in the middle is two literal characters,
backslash and n, and only the trailing real newline survives. With this, all four
of TOML’s string flavors are done: basic, literal, and the multiline version of
each.
// a value opening with "'''" is a multiline literal string// read everything up to the closing "'''"// trim ONE newline right after the opening delimiter// NO escape processing - backslashes and all are verbatim