Permalink
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (44 sloc) 442 Bytes
=== Multi-level Mapping Indent
--- from: https://github.com/ingydotnet/yaml-pegex-pm/blob/master/test/indent.tml
--- tags: mapping indent
--- in-yaml
a:
b:
c: d
e:
f: g
h: i
--- in-json
{
"a": {
"b": {
"c": "d"
},
"e": {
"f": "g"
}
},
"h": "i"
}
--- test-event
+STR
+DOC
+MAP
=VAL :a
+MAP
=VAL :b
+MAP
=VAL :c
=VAL :d
-MAP
=VAL :e
+MAP
=VAL :f
=VAL :g
-MAP
-MAP
=VAL :h
=VAL :i
-MAP
-DOC
-STR