Skip to content

Infinite loop when attempting to parse multi-line scalar document that is not indented (sample included) #144

@cspotcode

Description

@cspotcode

When attempting to parse the following YAML, the parser gets into an infinite loop, neither successfully parsing nor throwing an error.

--- |
hi

I am not sure which is correct according to the YAML spec: is this an invalid YAML document? Or should it parse to the string "hi"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions