8000 Wrong parsing of brackets in lines · Issue #6786 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Wrong parsing of brackets in lines #6786
Closed
@stof

Description

@stof

Using the following YAML:

foo:
    bar: [foo]bar

Parsing it the YAML component produces this result:

array('foo' => array('bar' => array('foo')))

and the bar part is lost.

However, when trying to parse it on YAML Lint produces a syntax error.
The syntax error is a better behavior IMO as the expected result in such case is probably a string '[foo]bar' for which the quoting has been forgotten.

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

      0