Switch yaml.Parser to parse binary scalars as Bytes (#1277)

This commit is contained in:
Jen Basch
2025-10-30 16:45:59 -07:00
committed by GitHub
parent ede48d0fff
commit ffc9167bf5
8 changed files with 59 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ module pkl.yaml
/// | !!seq | [Listing] |
/// | !!set | [Listing] |
/// | !!map | [Dynamic] or [Mapping] depending on [Parser.useMapping] |
/// | !!binary | [String] |
/// | !!binary | [Bytes] |
/// | !!timestamp | [String] |
///
/// The element order of YAML sequences, sets, and mappings is maintained.
@@ -88,4 +88,4 @@ class Parser {
}
/// Pkl representation of a YAML value.
typealias Value = Null | Boolean | Number | String | Listing | Dynamic | Mapping
typealias Value = Null | Boolean | Number | String | Bytes | Listing | Dynamic | Mapping