PureYAML/Sources/Parsing
Mihaela M d1d5b1a37c fix(parsing): parse a flow mapping value on the next line
In a flow mapping the value is a flow node and may sit on any line; flow is line
insensitive. parseMappingPair gated value parsing on hasNodeOnSameLine, a
block-only rule, so a value after `:` on the next line was treated as null and
left unconsumed, failing the whole flow mapping. Thread an inFlow flag and, in
flow, parse the value as a flow node line-insensitively (only a flow terminator
leaves it null), bypassing the block-only same-line and indentation branches.

Pretty-printed JSON (a YAML 1.2 superset) relies on this. Against the JSON Schema
Test Suite corpus this fixes all 27 files that previously failed to parse
(432/432 now); the YAML test-suite (318/333, value-level 206/206) and the full
suite stay green.
2026-06-29 21:40:12 +02:00
..
BlockScalarChomping.swift fix(parsing): classify the keep block-scalar chomping indicator 2026-06-26 07:50:07 +02:00
BlockScalarStyle.swift
CollectionStyle.swift
Event.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
EventComposer.Merge.swift
EventComposer.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
EventStreamComposedNode.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
EventStreamComposer.Located.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
EventStreamComposer.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
EventStreamComposerMode.swift
EventStreamContainer.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
EventStreamContainerKind.swift
Mark.swift
MergeResolution.swift
NodeKind.swift
NodeProperties.swift
NodeResult.swift
ParseError.swift fix(parsing): reject a document marker inside a multi-line scalar 2026-06-27 23:20:52 +02:00
Parser.Events.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
Parser.ScalarComposition.swift fix(parsing): keep a non-core-tagged scalar as a string 2026-06-28 22:25:48 +02:00
Parser.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
Reader.swift
Scalar.swift fix(parsing): enforce the full YAML 1.2 double-quoted escape table 2026-06-27 16:19:25 +02:00
ScalarStyle.swift
Scanner.Directives.swift Merge parse-gap fixes onto main 2026-06-29 09:15:50 +02:00
Scanner.FlowContext.swift fix(parsing): parse an explicit key inside a flow collection 2026-06-29 01:17:26 +02:00
Scanner.FlowKey.swift fix(parsing): parse a flow collection before a colon as a mapping key 2026-06-28 18:34:11 +02:00
Scanner.Helpers.swift Merge tag-handle diagnostics onto main 2026-06-29 09:14:21 +02:00
Scanner.Indentation.swift fix(parsing): end a root block scalar at a document marker 2026-06-29 08:57:39 +02:00
Scanner.Scalars.swift feat(parsing): scope %TAG per document, diagnose undefined handles 2026-06-29 07:54:55 +02:00
Scanner.State.swift Merge tag-handle diagnostics onto main 2026-06-29 09:14:21 +02:00
Scanner.swift Merge tag-handle diagnostics onto main 2026-06-29 09:14:21 +02:00
Scanner.Tags.swift feat(parsing): scope %TAG per document, diagnose undefined handles 2026-06-29 07:54:55 +02:00
ScannerFlowContextKind.swift
TagHandleIssue.swift feat(parsing): scope %TAG per document, diagnose undefined handles 2026-06-29 07:54:55 +02:00
TagNormalizer.swift
Text.swift
Token.swift
TokenCursor.swift fix(parsing): parse a property-only block mapping key as an empty key 2026-06-29 08:26:50 +02:00
TokenEventParser.Block.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
TokenEventParser.ExplicitKey.swift Merge parse-gap fixes onto main 2026-06-29 09:15:50 +02:00
TokenEventParser.Flow.swift fix(parsing): parse a flow mapping value on the next line 2026-06-29 21:40:12 +02:00
TokenEventParser.Helpers.swift fix(parsing): parse a flow mapping value on the next line 2026-06-29 21:40:12 +02:00
TokenEventParser.swift Merge located parse onto main 2026-06-29 09:11:07 +02:00
TokenKind.swift