sha256 7b4d2e41e50145cc88a201facdbcb7de48f6d75e527bb8e17a2ba5cfbcc208f9
---
|6-
#a
| grammar | valid, vouched for up to construct |
| encoding/bom | open from parse on: each parser's stance decides |
| features | encoding/byte-order-mark presentation/block-indicator presentation/block-literal presentation/chomp-padded presentation/document-marker value/string |
| meaning (yaml-1.2-core) | "#a" |
go-yaml perlref yaml.v3 yamlstar
accept
libfyaml
refuse by the parser
go-yaml yamlstar
"#a"
yaml.v3
""
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | rejected, explained refuse by the parser | rejected, explained | n/i | indicator-counted-from-0: fy-tool counts a top-level block scalar's indentation indicator from column 0. The root node has n = -1 ([207] l-bare-document), and [170] sets the content indentation to n+m, so "--- |3" holds its content at 2 spaces, as the column 0 content of example 9.5 needs. After a reserved directive, fy-tool writes the warning "Unsupported directive" first, and the indentation error after it value: indicator-counted-from-0: fy-tool counts a top-level block scalar's indentation indicator from column 0. The root node has n = -1 ([207] l-bare-document), and [170] sets the content indentation to n+m, so "--- |3" holds its content at 2 spaces, as the column 0 content of example 9.5 needs. After a reserved directive, fy-tool writes the warning "Unsupported directive" first, and the indentation error after it |
stdin:3:1: error: empty block scalar with wrongly indented comment line after spaces only |
| yamlstar | accepted accept | ok | n/i | ||
| yaml.v3 | accepted accept | different, explained | same | value: indicator-counted-from-0-value: yaml.v3 counts a top-level block scalar's indentation indicator from column 0, one space deeper than n+m with the root's n = -1. The content loses a leading space, "|3-" over a line of 3 spaces gives "" for " ", and a line at the spec's indentation falls outside the scalar: "|2-" over " #a" gives "" for "#a" | |
| go-yaml | accepted accept | ok | same |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.