Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong parsing of nested lists #23

Open
freylax opened this issue May 29, 2023 · 4 comments
Open

wrong parsing of nested lists #23

freylax opened this issue May 29, 2023 · 4 comments

Comments

@freylax
Copy link

freylax commented May 29, 2023

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]
@freylax
Copy link
Author

freylax commented May 31, 2023

Also hyphened nested lists do not work as expected.

@freylax
Copy link
Author

freylax commented May 31, 2023

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.

@leap0x7b
Copy link

leap0x7b commented Oct 8, 2023

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.

@freylax
Copy link
Author

freylax commented Oct 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants