diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/esc_multiple_newlines.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/esc_multiple_newlines.kdl new file mode 100644 index 0000000..032ed17 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/esc_multiple_newlines.kdl @@ -0,0 +1 @@ +node "12" diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_after_semicolon.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_after_semicolon.kdl new file mode 100644 index 0000000..3e545b1 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_after_semicolon.kdl @@ -0,0 +1,2 @@ +node +node diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_alone.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_alone.kdl new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_alone.kdl @@ -0,0 +1 @@ + diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_empty_line.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_empty_line.kdl new file mode 100644 index 0000000..64f5a0a --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_empty_line.kdl @@ -0,0 +1 @@ +node diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_end_of_node.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_end_of_node.kdl new file mode 100644 index 0000000..422c2b7 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_end_of_node.kdl @@ -0,0 +1,2 @@ +a +b diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_in_child_block.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_in_child_block.kdl new file mode 100644 index 0000000..9b05e30 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_in_child_block.kdl @@ -0,0 +1,4 @@ +parent { + child + child +} diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_node_type.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_node_type.kdl new file mode 100644 index 0000000..c790643 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_node_type.kdl @@ -0,0 +1 @@ +(type)node diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_slashdash.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_slashdash.kdl new file mode 100644 index 0000000..64f5a0a --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/escline_slashdash.kdl @@ -0,0 +1 @@ +node diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_double_backslash.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_double_backslash.kdl new file mode 100644 index 0000000..38ad0e5 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_double_backslash.kdl @@ -0,0 +1 @@ +node "a\\ b\na\\b" diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_delimiter.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_delimiter.kdl new file mode 100644 index 0000000..025d655 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_delimiter.kdl @@ -0,0 +1 @@ +node "\"\"\"" diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_in_closing_line.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_in_closing_line.kdl new file mode 100644 index 0000000..e7186a6 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_in_closing_line.kdl @@ -0,0 +1 @@ +node "foo bar\nbaz" diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_in_closing_line_shallow.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_in_closing_line_shallow.kdl new file mode 100644 index 0000000..314069e --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_in_closing_line_shallow.kdl @@ -0,0 +1 @@ +node " foo bar\n baz" diff --git a/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_newline_at_end.kdl b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_newline_at_end.kdl new file mode 100644 index 0000000..56fe48f --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/expected_kdl/multiline_string_escape_newline_at_end.kdl @@ -0,0 +1 @@ +node " a" diff --git a/tests/test_documents/upstream/2.0.0.draft/input/esc_multiple_newlines.kdl b/tests/test_documents/upstream/2.0.0.draft/input/esc_multiple_newlines.kdl new file mode 100644 index 0000000..f3d91c4 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/esc_multiple_newlines.kdl @@ -0,0 +1,4 @@ +node "1\ + + +2" diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_after_semicolon.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_after_semicolon.kdl new file mode 100644 index 0000000..59a4ab8 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_after_semicolon.kdl @@ -0,0 +1,2 @@ +node; \ +node diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_alone.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_alone.kdl new file mode 100644 index 0000000..57ddad2 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_alone.kdl @@ -0,0 +1 @@ +\ diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_empty_line.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_empty_line.kdl new file mode 100644 index 0000000..1777a83 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_empty_line.kdl @@ -0,0 +1,3 @@ +\ + +node diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_end_of_node.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_end_of_node.kdl new file mode 100644 index 0000000..87dd42b --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_end_of_node.kdl @@ -0,0 +1,3 @@ +a \ + +b diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_in_child_block.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_in_child_block.kdl new file mode 100644 index 0000000..dfbe682 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_in_child_block.kdl @@ -0,0 +1,5 @@ +parent { + child + \ // comment + child +} diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_node.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_node.kdl index 1c5b5f3..215f634 100644 --- a/tests/test_documents/upstream/2.0.0.draft/input/escline_node.kdl +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_node.kdl @@ -1,2 +1,3 @@ node1 +\ node2 diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_node_type.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_node_type.kdl new file mode 100644 index 0000000..fb22096 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_node_type.kdl @@ -0,0 +1,2 @@ +\ +(type)node diff --git a/tests/test_documents/upstream/2.0.0.draft/input/escline_slashdash.kdl b/tests/test_documents/upstream/2.0.0.draft/input/escline_slashdash.kdl new file mode 100644 index 0000000..8cb0956 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/escline_slashdash.kdl @@ -0,0 +1,4 @@ +node +\ +/- +node diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_double_backslash.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_double_backslash.kdl new file mode 100644 index 0000000..7289aa9 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_double_backslash.kdl @@ -0,0 +1,4 @@ +node """ +a\\ b +a\\\ b +""" diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_delimiter.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_delimiter.kdl new file mode 100644 index 0000000..d873e8c --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_delimiter.kdl @@ -0,0 +1,3 @@ +node """ +\""" +""" diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_in_closing_line.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_in_closing_line.kdl new file mode 100644 index 0000000..23a5796 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_in_closing_line.kdl @@ -0,0 +1,5 @@ +node """ + foo \ +bar + baz + \ """ diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_in_closing_line_shallow.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_in_closing_line_shallow.kdl new file mode 100644 index 0000000..fba22a4 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_in_closing_line_shallow.kdl @@ -0,0 +1,5 @@ +node """ + foo \ +bar + baz +\ """ diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_newline_at_end.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_newline_at_end.kdl new file mode 100644 index 0000000..045bf6c --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_newline_at_end.kdl @@ -0,0 +1,4 @@ +node """ + a + \ +""" diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_newline_at_end_fail.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_newline_at_end_fail.kdl new file mode 100644 index 0000000..692c8c2 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_escape_newline_at_end_fail.kdl @@ -0,0 +1,4 @@ +node """ +a + \ +""" diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_final_whitespace_escape_fail.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_final_whitespace_escape_fail.kdl new file mode 100644 index 0000000..84310da --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_final_whitespace_escape_fail.kdl @@ -0,0 +1,4 @@ +node """ + foo + bar\ + """ \ No newline at end of file diff --git a/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_non_literal_prefix_fail.kdl b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_non_literal_prefix_fail.kdl new file mode 100644 index 0000000..bb7f188 --- /dev/null +++ b/tests/test_documents/upstream/2.0.0.draft/input/multiline_string_non_literal_prefix_fail.kdl @@ -0,0 +1,4 @@ +node """ +\s escaped prefix + literal prefix + """