saphyr-serde/parser/tests/yaml-test-suite/src/6BFJ.yaml
2024-10-12 16:15:46 +02:00

28 lines
458 B
YAML

---
- 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