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

Incorrect parsing of explicit sibling maps #551

Closed
RedCMD opened this issue Jun 5, 2024 · 1 comment
Closed

Incorrect parsing of explicit sibling maps #551

RedCMD opened this issue Jun 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RedCMD
Copy link

RedCMD commented Jun 5, 2024

Describe the bug
explicit sibling maps are parsed as nested

To Reproduce

?
? abc

Expected behaviour
output should be two map nodes
first one should be null: null
2nd one abc: null
l+block-mapping states children must be indented further and siblings use the same indentation

Versions:

  • Environment: VSCode 1.89
  • yaml: 2.4.3

Additional context
image

---
!!map { #should be this
  ? !!null "null"
  : !!null "null",
  ? !!str "abc"
  : !!null "null",
}
@RedCMD RedCMD added the bug Something isn't working label Jun 5, 2024
@eemeli
Copy link
Owner

eemeli commented Jun 7, 2024

Confirming this as a bug.

@eemeli eemeli closed this as completed in 5096f83 Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants