8000 ignore trailing document separators · Issue #413 · dtolnay/serde-yaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
ignore trailing document separators #413
Open
@milahu

Description

@milahu

trailing commas are ignored already
[ 1, 2, ] is the same as [ 1, 2 ]

but currently, trailing document separators create an empty document

1
---
2
---

expected: ignore the empty document after 2
so the result is the same as

1
---
2

this would make it easier to generate a stream of yaml documents in a for loop
always using --- as "end of document" also if there is no next document

via ast-grep/ast-grep#942

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0