summaryrefslogtreecommitdiff
path: root/tests3/data/sloppy-indentation.canonical
diff options
context:
space:
mode:
Diffstat (limited to 'tests3/data/sloppy-indentation.canonical')
-rw-r--r--tests3/data/sloppy-indentation.canonical18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests3/data/sloppy-indentation.canonical b/tests3/data/sloppy-indentation.canonical
new file mode 100644
index 0000000..438bc04
--- /dev/null
+++ b/tests3/data/sloppy-indentation.canonical
@@ -0,0 +1,18 @@
+%YAML 1.1
+---
+!!map {
+ ? !!str "in the block context"
+ : !!map {
+ ? !!str "indentation should be kept"
+ : !!map {
+ ? !!str "but in the flow context"
+ : !!seq [ !!str "it may be violated" ]
+ }
+ }
+}
+--- !!str
+"the parser does not require scalars to be indented with at least one space"
+--- !!str
+"the parser does not require scalars to be indented with at least one space"
+--- !!map
+{ ? !!str "foo": { ? !!str "bar" : !!str "quoted scalars may not adhere indentation" } }