A zero-indent literal or folded block scalar sits at column 0, where the directive scan runs, so a content line beginning with `%` (`%!PS-Adobe-2.0`) was misread as a directive and rejected as unsupported. The directive scan now runs only outside a block scalar, so a leading `%` in block scalar content is literal text. A real `%YAML` or `%TAG` directive still parses, and a stray `%` in other content is still rejected rather than silently accepted, so the should-error behaviour is unchanged. This is groundwork for yaml-test-suite W4TN, which additionally needs a block scalar to be terminated by `...` and per-document directives across a multi- document stream, so conformance counts are unchanged this step. |
||
|---|---|---|
| .. | ||
| BlockScalarChomping.swift | ||
| BlockScalarStyle.swift | ||
| CollectionStyle.swift | ||
| Event.swift | ||
| EventComposer.Merge.swift | ||
| EventComposer.swift | ||
| EventStreamComposedNode.swift | ||
| EventStreamComposer.swift | ||
| EventStreamComposerMode.swift | ||
| EventStreamContainer.swift | ||
| EventStreamContainerKind.swift | ||
| Mark.swift | ||
| MergeResolution.swift | ||
| NodeKind.swift | ||
| NodeProperties.swift | ||
| NodeResult.swift | ||
| ParseError.swift | ||
| Parser.Events.swift | ||
| Parser.ScalarComposition.swift | ||
| Parser.swift | ||
| Reader.swift | ||
| Scalar.swift | ||
| ScalarStyle.swift | ||
| Scanner.Directives.swift | ||
| Scanner.FlowContext.swift | ||
| Scanner.FlowKey.swift | ||
| Scanner.Helpers.swift | ||
| Scanner.Indentation.swift | ||
| Scanner.Scalars.swift | ||
| Scanner.swift | ||
| ScannerFlowContextKind.swift | ||
| TagNormalizer.swift | ||
| Text.swift | ||
| Token.swift | ||
| TokenCursor.swift | ||
| TokenEventParser.Block.swift | ||
| TokenEventParser.Flow.swift | ||
| TokenEventParser.Helpers.swift | ||
| TokenEventParser.swift | ||
| TokenKind.swift | ||