shape/indentation/a literal scalar whose content opens with a tab

sha256 8b22003e8c50cb86a6bf553976bf734b50f2f2ccaf28fe1946ca3af1b7044c86

Document

|
	x

Corpus

grammarvalid, vouched for up to construct
indentation/tab-opens-contentopen from parse on: each parser's stance decides
featuresnone
meaning (yaml-1.2-core)"\tx\n"

Answer groups

verdict split

go-yaml perlref yamlstar

accept

libfyaml yaml.v3

refuse by the parser

value

go-yaml yamlstar

"\tx\n"

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml rejected, tagged refuse by the parser rejected, tagged n/i indentation/tab-opens-content: fy-tool rejects a tab opening a top-level block scalar's content in a bare document, "|\n\tx" fails with "invalid tab character as indent instead of space", and accepts it after a "---": "--- !!str |\n\tx"
value: indentation/tab-opens-content: fy-tool rejects a tab opening a top-level block scalar's content in a bare document, "|\n\tx" fails with "invalid tab character as indent instead of space", and accepts it after a "---": "--- !!str |\n\tx"
stdin:2:1: error: invalid tab character as indent instead of space
yamlstar accepted accept ok n/i
yaml.v3 rejected, explained refuse by the parser rejected, explained refused tab-opens-block-content: yaml.v3 rejects a tab at the start of a block scalar's content, where the indentation ends and the tab is content: "|\n \tx" rejects the document
value: tab-opens-block-content: yaml.v3 rejects a tab at the start of a block scalar's content, where the indentation ends and the tab is content: "|\n \tx" rejects the document
yaml.v3: yaml: line 2: found a tab character where an indentation space is expected
go-yaml accepted accept ok same

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.