PureYAML/Sources/Parsing
Mihaela Mihaljevic ae85ec97c9 fix(emitting): quote every string the parser reads as another type
The emitter kept its own list of reserved words and number shapes,
apart from the parser's, and the two disagreed: the string yes was
written plain and read back as a boolean, as were 0x1F, 1_000 and
.inf. The parser's reading of a plain scalar is now one type that
both use, and the emitter quotes what does not read back as a string.

Also quoted: the merge key, the document end marker, and a string
with a CR+LF break, which was written raw.
2026-10-28 23:32:40 +01:00
..
BlockScalarChomping.swift
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 Merge conformance/yaml-test-suite-gaps: the libyaml port becomes the engine on main 2026-07-05 00:23:48 +02:00
EventStreamComposedNode.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
EventStreamComposer.ExpansionBudget.swift fix(parsing): reject anchor-expansion (billion-laughs) bombs 2026-07-18 23:35:35 +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 fix(parsing): reject anchor-expansion (billion-laughs) bombs 2026-07-18 23:35:35 +02:00
EventStreamComposerMode.swift
EventStreamContainer.swift fix(parsing): reject anchor-expansion (billion-laughs) bombs 2026-07-18 23:35:35 +02:00
EventStreamContainerKind.swift
LibYAML.CharacterClass.swift
LibYAML.IndentEngine.swift feat(parsing): add a resumable scanner increment and broaden the mutation suite 2026-07-09 23:38:39 +02:00
LibYAML.NodeProperties.swift
LibYAML.Parser.Block.swift
LibYAML.Parser.Directives.swift
LibYAML.Parser.Document.swift
LibYAML.Parser.Flow.swift
LibYAML.Parser.Helpers.swift
LibYAML.Parser.Node.swift
LibYAML.Parser.swift
LibYAML.ParserError.swift
LibYAML.ParserState.swift
LibYAML.Reader.swift fix(parsing): reject raw control characters in parse(), matching libyaml 2026-07-10 11:03:27 +02:00
LibYAML.Scanner.Anchor.swift
LibYAML.Scanner.BlockScalar.swift feat(parsing): add a resumable scanner increment and broaden the mutation suite 2026-07-09 23:38:39 +02:00
LibYAML.Scanner.Directive.swift
LibYAML.Scanner.Fetch.swift fix(parsing): reject raw control characters in parse(), matching libyaml 2026-07-10 11:03:27 +02:00
LibYAML.Scanner.FlowScalar.swift feat(parsing): add a resumable scanner increment and broaden the mutation suite 2026-07-09 23:38:39 +02:00
LibYAML.Scanner.Guards.swift feat(parsing): add a resumable scanner increment and broaden the mutation suite 2026-07-09 23:38:39 +02:00
LibYAML.Scanner.PlainScalar.swift feat(parsing): persist mid-token suspension and expose it as a public streaming API 2026-07-10 09:10:56 +02:00
LibYAML.Scanner.SkipToToken.swift feat(parsing): add a resumable scanner increment and broaden the mutation suite 2026-07-09 23:38:39 +02:00
LibYAML.Scanner.Streaming.swift feat(parsing): persist mid-token suspension and expose it as a public streaming API 2026-07-10 09:10:56 +02:00
LibYAML.Scanner.swift feat(parsing): persist mid-token suspension and expose it as a public streaming API 2026-07-10 09:10:56 +02:00
LibYAML.Scanner.Tag.swift style: bring four files back under the swiftformat gate 2026-07-12 13:29:05 +02:00
LibYAML.ScannerError.swift
LibYAML.SimpleKey.swift
LibYAML.swift
LibYAML.Token.swift
LibYAML.TokenType.swift
Mark.swift
MergeResolution.swift
NodeKind.swift
ParseError.LibYAML.swift fix(parsing): reject raw control characters in parse(), matching libyaml 2026-07-10 11:03:27 +02:00
ParseError.swift fix(parsing): reject anchor-expansion (billion-laughs) bombs 2026-07-18 23:35:35 +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 Merge conformance/yaml-test-suite-gaps: the libyaml port becomes the engine on main 2026-07-05 00:23:48 +02:00
Parser.swift feat(parsing): opt-in located parse on the hand-rolled engine 2026-06-29 07:14:42 +02:00
Parsing.PlainScalar.swift fix(emitting): quote every string the parser reads as another type 2026-10-28 23:32:40 +01:00
Reader.swift
Scalar.swift fix(emitting): quote every string the parser reads as another type 2026-10-28 23:32:40 +01:00
ScalarStyle.swift
TagNormalizer.swift
Text.swift