summaryrefslogtreecommitdiffstats
path: root/internal/toml-test/tests/valid/string/raw-multiline.toml
diff options
context:
space:
mode:
Diffstat (limited to 'internal/toml-test/tests/valid/string/raw-multiline.toml')
-rw-r--r--internal/toml-test/tests/valid/string/raw-multiline.toml18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/toml-test/tests/valid/string/raw-multiline.toml b/internal/toml-test/tests/valid/string/raw-multiline.toml
new file mode 100644
index 0000000..fff00d9
--- /dev/null
+++ b/internal/toml-test/tests/valid/string/raw-multiline.toml
@@ -0,0 +1,18 @@
+# Single ' should be allowed.
+oneline = '''This string has a ' quote character.'''
+
+# A newline immediately following the opening delimiter will be trimmed.
+firstnl = '''
+This string has a ' quote character.'''
+
+# All other whitespace and newline characters remain intact.
+multiline = '''
+This string
+has ' a quote character
+and more than
+one newline
+in it.'''
+
+# Tab character in literal string does not need to be escaped
+multiline_with_tab = '''First line
+ Followed by a tab'''