kubkon/zig-yaml

wrong parsing of nested lists

Opened this issue · 4 comments

When parsing a list of maps and the last item of an map contains an non bracketed list the next outer list item will be intermixed with the inner one:

- l: 
  - a
- l:
  - b

will result in:

- l: [ a, l: [ b ] ]

instead of

- l: [a]
- l: [b]

Also hyphened nested lists do not work as expected.

I added support for nested lists, but need help to create an pull request
The repo https://github.com/nodecum/zig-yaml contains the changes.

Bro how did you not know how to pull request? Just go to https://github.com/kubkon/zig-yaml/compare and that's it. It's that easy.

Dear Jakub Konka,
I hope I did it all right now. Learnd git a bit more, thanks!