wesleywiser / toml-rust

MIT License
0 stars 0 forks source link

Implement Multi-line Literal Strings #6

Open wesleywiser opened 9 years ago

wesleywiser commented 9 years ago

Multi-line literal strings are surrounded by three single quotes on each side and allow newlines. Like literal strings, there is no escaping whatsoever. A newline immediately following the opening delimiter will be trimmed. All other content between the delimiters is interpreted as-is without modification.

regex2 = '''I [dw]on't need \d{2} apples'''
lines  = '''
The first newline is
trimmed in raw strings.
   All other whitespace
   is preserved.
'''