Now that a root-level block scalar can auto-detect indentation 0, its content loop reaches lines in column 0, so a '---' or '...' document marker there must end the scalar. Without the guard a '--- |' literal folded the following '...', the next '%YAML' directive, and every later document into its value. Break out of the block-scalar content loop on a column-0 document marker. The guard only fires at indent 0 (column == indent == 0), so nested block scalars are unaffected. Surpasses libyaml on W4TN. Port score 306 -> 307. |
||
|---|---|---|
| .. | ||
| Coding | ||
| Decoding | ||
| Emitting | ||
| Encoding | ||
| Model | ||
| Parsing | ||
| Stream | ||
| Tagged | ||
| Validation | ||
| API.swift | ||
| PureYAML.swift | ||