moving leading content processing logic into yaml decoder

This commit is contained in:
Mike Farah
2022-10-26 13:12:30 +11:00
parent 4138c3b005
commit 2e588a11a0
36 changed files with 230 additions and 205 deletions
@@ -246,6 +246,7 @@ Note the use of `...` to ensure key nodes are included.
Given a sample.yml file of:
```yaml
# hi
a: cat # comment
# great
b: # key comment
@@ -263,6 +264,7 @@ b:
## Get line comment
Given a sample.yml file of:
```yaml
# welcome!
a: cat # meow
# have a great day
```