diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2025-08-28 10:35:13 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2025-08-28 10:35:13 -0400 |
commit | 3539b7f5308b617e99b0a4ea298a413acbda4d79 (patch) | |
tree | 42101adf54ce7fc060da9e312dc508aaf1302bf2 /src/ext_depends/D-YAML/test/sloppy-indentation.yaml | |
parent | dub 1.40.0, llvm 20 (diff) |
Diffstat (limited to 'src/ext_depends/D-YAML/test/sloppy-indentation.yaml')
-rw-r--r-- | src/ext_depends/D-YAML/test/sloppy-indentation.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/test/sloppy-indentation.yaml b/src/ext_depends/D-YAML/test/sloppy-indentation.yaml new file mode 100644 index 0000000..86b66a0 --- /dev/null +++ b/src/ext_depends/D-YAML/test/sloppy-indentation.yaml @@ -0,0 +1,17 @@ +%YAML 1.1 +--- +- name: sloppy-indentation + yaml: "---\nin the block context:\n indentation should be kept: { \n but in\ + \ the flow context: [\nit may be violated]\n}\n---\nthe parser does not require\ + \ scalars\nto be indented with at least one space\n...\n---\n\"the parser does not\ + \ require scalars\nto be indented with at least one space\"\n---\nfoo:\n bar:\ + \ 'quoted scalars\nmay not adhere indentation'\n" +- name: sloppy-indentation-canonical + yaml: "%YAML 1.1\n---\n!!map { \n ? !!str \"in the block context\"\n \ + \ : !!map {\n ? !!str \"indentation should be kept\"\n : !!map {\n\ + \ ? !!str \"but in the flow context\"\n : !!seq [ !!str \"\ + it may be violated\" ]\n }\n }\n}\n--- !!str\n\"the parser does not require\ + \ scalars to be indented with at least one space\"\n--- !!str\n\"the parser does\ + \ not require scalars to be indented with at least one space\"\n--- !!map\n{ ? !!str\ + \ \"foo\": { ? !!str \"bar\" : !!str \"quoted scalars may not adhere indentation\"\ + \ } }\n" |