PureYAML/Sources/Parsing/BlockScalarChomping.swift
Mihaela M fadde56a05 fix(parsing): classify the keep block-scalar chomping indicator
The scanner consumed the `+` indicator of a `|+` / `>+` block scalar but
mapped it to nothing, so keep was silently treated as clip, and a scanner
test baked that in. Add a `keep` case to BlockScalarChomping, recognize
`+` in the header scanner, and correct the test. Full keep value semantics
(preserving trailing blank lines) depend on scanner blank-line capture and
are tracked in #57; this commit fixes the token classification only.
2026-06-26 07:50:07 +02:00

12 lines
233 B
Swift

extension PureYAML.Parsing {
enum BlockScalarChomping: String, Equatable, CustomStringConvertible {
case clip
case strip
case keep
var description: String {
rawValue
}
}
}