From 940fcf9e183ab4f29204ef4f3ea92c01de8cc08a Mon Sep 17 00:00:00 2001 From: pyfisch Date: Thu, 28 May 2020 17:39:55 +0200 Subject: Allow delimiter quotes at the end of multiline strings (#393) TOML allows (unlike many other formats) up to 2 additonal quotes that are part of the string: basic = """2 extra quotes -->""""" literal = '''here too '''' Changed in TOML v1.0.0-rc.1 See also #392 --- test-suite/tests/valid/string-delim-end.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test-suite/tests/valid/string-delim-end.json (limited to 'test-suite/tests/valid/string-delim-end.json') diff --git a/test-suite/tests/valid/string-delim-end.json b/test-suite/tests/valid/string-delim-end.json new file mode 100644 index 0000000..69b5a0a --- /dev/null +++ b/test-suite/tests/valid/string-delim-end.json @@ -0,0 +1,14 @@ +{ + "str1": { + "type": "string", + "value": "\"This,\" she said, \"is just a pointless statement.\"" + }, + "str2": { + "type": "string", + "value": "foo''bar''" + }, + "str3": { + "type": "string", + "value": "\"\"" + } +} \ No newline at end of file -- cgit v1.2.3