sha256 44f98089503fd5bb219acedb13485279091231c99c5339263390e6200fdbde19
---
anchored: &x plain text
kept:
nested: 1
list:
- a
- b
also: |
literal
content
---
aliased: *x
| grammar | valid, vouched for up to construct |
| anchor/alias-across-documents | reject from compose on, 3.2.2.2: anchor names are local to a document, so an earlier document's anchor is out of scope |
| features | none |
| meaning (none stated) | |
go-yaml
refuse by the composer
libfyaml perlref yaml.v3
accept
yamlstar
refuse by the loader
libfyaml yaml.v3
{"also":"literal\ncontent\n","anchored":"plain text","kept":{"list":["a","b"],"nested":1}}
{"aliased":"plain text"}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted accept | not scored | n/i | anchor/alias-across-documents: libfyaml keeps one anchor table for the whole stream on purpose, so an alias may name an anchor of an earlier document. The rule is decided at compose, past the parse fy-tool gives the verdict on | |
| yamlstar | rejected, settled refuse by the loader | not scored | n/i | anchor/alias-across-documents: 3.2.2.2: anchor names are local to a document, so an earlier document's anchor is out of scope | Error: Unknown anchor: x |
| yaml.v3 | accepted, against the rules accept | not scored | same | anchor/alias-across-documents: 3.2.2.2: anchor names are local to a document, so an earlier document's anchor is out of scope | |
| go-yaml | rejected, settled refuse by the composer | not scored | refused | anchor/alias-across-documents: 3.2.2.2: anchor names are local to a document, so an earlier document's anchor is out of scope | [12:11] could not find alias "x" |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.