yaml / yaml-spec

YAML Specification
http://yaml.org/spec/
348 stars 53 forks source link

Add missing error case in content indentation rules #190

Closed Thom1729 closed 3 years ago

Thom1729 commented 3 years ago

After the grammar changes, the grammar itself no longer enforces that block scalar content indentation must match the indentation indicator. I intended to add this restriction to 8.1.1.1 Block Indentation Indicator, but I inadvertently left it out. This PR adds it.

Also, this PR removes a redundant sentence that was inadvertently left in. The remainder of the section does properly define the indentation indicator:

If a block scalar has an indentation indicator, then the content indentation level of the block scalar is equal to the indentation level of the block scalar plus the value of the indentation indicator.