PureYAML/Sources/Parsing
Mihaela Mihaljevic 57adb14f15 fix(parsing): reject a block sequence that opens mid-line
A block sequence must begin its own line. A '-' entry mid-line after an
inline mapping value ('key: - a') or a node property ('&anchor - x') is
invalid, but libyaml accepts both. A '-' after another '-' is still a
valid compact sequence ('- - a'), and an explicit key whose ':' is on a
later line may still open a sequence ('? k' / ': - a').

In fetchBlockEntry, when no line break was crossed, reject if the last
token is an anchor/tag, or a value that closed an inline implicit key
(told apart by a pending simple key: an explicit key's simple key has
gone stale across its line break). Extract the scanner guard helpers into
LibYAML.Scanner.Guards to stay within the file-length limit.

Surpasses libyaml on 5U3A, SY6V; whole-suite conformance 396/402,
canonical events 308/308.
2026-06-24 21:44:27 +02:00
..
BlockScalarChomping.swift
BlockScalarStyle.swift
CollectionStyle.swift
Event.swift
EventComposer.Merge.swift
EventComposer.swift
EventStreamComposer.swift
LibYAML.CharacterClass.swift
LibYAML.IndentEngine.swift
LibYAML.NodeProperties.swift
LibYAML.Parser.Block.swift
LibYAML.Parser.Directives.swift
LibYAML.Parser.Document.swift fix(parsing): reject misplaced directives, refresh suite manifest 2026-06-24 19:51:39 +02:00
LibYAML.Parser.Flow.swift fix(parsing): parse a leading ':' flow-sequence entry as an empty-key pair 2026-06-24 19:07:04 +02:00
LibYAML.Parser.Helpers.swift
LibYAML.Parser.Node.swift
LibYAML.Parser.swift
LibYAML.ParserError.swift
LibYAML.ParserState.swift
LibYAML.Reader.swift
LibYAML.Scanner.Anchor.swift
LibYAML.Scanner.BlockScalar.swift fix(parsing): reject a comment with no preceding whitespace 2026-06-24 20:00:21 +02:00
LibYAML.Scanner.Directive.swift fix(parsing): reject misplaced directives, refresh suite manifest 2026-06-24 19:51:39 +02:00
LibYAML.Scanner.Fetch.swift fix(parsing): reject a block sequence that opens mid-line 2026-06-24 21:44:27 +02:00
LibYAML.Scanner.FlowScalar.swift
LibYAML.Scanner.Guards.swift fix(parsing): reject a block sequence that opens mid-line 2026-06-24 21:44:27 +02:00
LibYAML.Scanner.PlainScalar.swift fix(parsing): fold over a tab-only blank line in a plain scalar 2026-06-24 19:18:05 +02:00
LibYAML.Scanner.SkipToToken.swift fix(parsing): require flow continuation lines to be indented 2026-06-24 20:45:12 +02:00
LibYAML.Scanner.swift fix(parsing): reject a block sequence that opens mid-line 2026-06-24 21:44:27 +02:00
LibYAML.Scanner.Tag.swift
LibYAML.ScannerError.swift
LibYAML.SimpleKey.swift fix(parsing): accept tabs as separation, reject them as indentation 2026-06-24 19:14:12 +02:00
LibYAML.swift
LibYAML.Token.swift
LibYAML.TokenType.swift
Mark.swift
NodeKind.swift
ParseError.LibYAML.swift
ParseError.swift
Parser.Events.swift
Parser.ScalarComposition.swift fix(parsing): resolve a non-specific '!' tagged scalar as a string 2026-06-24 20:10:02 +02:00
Parser.swift
Reader.swift
Scalar.swift
ScalarStyle.swift
TagNormalizer.swift
Text.swift