Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 384 Bytes
=== Scalar value with two anchors
--- from: @perlpunk
--- tags: anchor error
This test shows a valid structure in the first pair but the second pair is
invalid because it has two anchors for the scalar value.
--- in-yaml
top1: &node1
&k1 key1: val1
top2: &node2
&v2 val2
--- error
--- test-event
+STR
+DOC
+MAP
=VAL :top1
+MAP &node1
=VAL &k1 :key1
=VAL :val1
-MAP
=VAL :top2