Skip to content

Newlines in inline tables appear not to work #94

@dwilliamson

Description

@dwilliamson

This is the test file:

a = {
   b = 3 }

The error Unexpected token `NewLine` while parsing inline table is emitted.

ParseKeyValue sets _hideNewLine = false. It then goes into ParseValue, which calls ParseInlineTable and inherits the value of _hideNewLine. It looks like ParseInlineTable should explicitly set it to true.

This isn't caught by any tests as #b2377a1 only added tests for inline arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions