Skip to content

Broken parsing validation on double commas within arrays #317

@steffanmusokedd

Description

@steffanmusokedd

What:

When parsing an array with two consecutive commas, no parsing error is thrown. In this case we should expect a syntax error.

ex.

array = [1, 2, , 3, 4]

Potential issue:

Looks like there was a workaround for trailing commas that likely is root cause.
https://github.com/chimpler/pyhocon/blob/master/pyhocon/config_parser.py#L754-L764

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions