saphyr-serde/parser/tests/yaml-test-suite/src/6BFJ.yaml

29 lines
458 B
YAML
Raw Normal View History

---
- name: Mapping, key and flow sequence item anchors
from: '@perlpunk'
tags: anchor complex-key flow mapping sequence
yaml: |
---
&mapping
&key [ &item a, b, c ]: value
tree: |
+STR
+DOC ---
+MAP &mapping
+SEQ [] &key
=VAL &item :a
=VAL :b
=VAL :c
-SEQ
=VAL :value
-MAP
-DOC
-STR
dump: |
--- &mapping
? &key
- &item a
- b
- c
: value