Skip to content

Incorrect parsing of explicit sibling maps #551

Closed
@RedCMD

Description

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",
}

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions