summaryrefslogtreecommitdiff
path: root/docs/commandcode-setup.md
diff options
context:
space:
mode:
authorAbhishek Sharma <abhicse24@gmail.com>2026-09-29 11:47:47 -0700
committerAbhishek Sharma <abhicse24@gmail.com>2026-09-29 11:47:47 -0700
commit30d449375508da1129072bb3b9fb3f3d72a89988 (patch)
tree303fa5a5838cd022ab6d4d65dbea4a9444abd958 /docs/commandcode-setup.md
parentcdb801652d8d3399f4d7044dba61121668287e0c (diff)
fix(validator): flag the indicators both parsers actually reject
Addresses review on #603. The comma claim was wrong. The code comment said a leading `,` parses cleanly; PyYAML rejects it with a ParserError and psych with a SyntaxError. The same comment was wrong about `]` and `}`. I had asserted all three without measuring, and a test pinned the comma claim, so the mistake was defended rather than caught. Now flagged, each verified against PyYAML and psych: `,` `*` and a one-line `|`/`>` header. A bare `|` with indented lines under it is a real block scalar and stays accepted; `|foo` is not one. Still not flagged, because each parses: `&anchor`, `#`, `:`/`-` without a following space, and `[`/`{`, which open valid flow collections. `]` and `}` are rejected by both parsers but left out for now - no frontmatter has ever started with them, and widening past what was asked risks false positives I have not thought through. Docstring no longer says "the three shapes".
Diffstat (limited to 'docs/commandcode-setup.md')
0 files changed, 0 insertions, 0 deletions