Skip to content

Multi-line plain scalars fail to parse with error found bad indenting in line #39

@Witiko

Description

@Witiko

According to the YAML 1.2 spec, multi-line plain scalars should be supported. However, parsing example 7.21 from the spec produces the following error:

require("tinyyaml").parse([[
key: 1st non-empty

 2nd non-empty
	3rd non-empty
]])
./tinyyaml.lua:715: found bad indenting in line:  2nd non-empty

The expected result is that tinyyaml parses the input and produces a Lua table with the following contents:

{
  ["key"] = "1st non-empty\n2nd non-empty 3rd non-empty"
}

This issue is possibly related to #32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions