Skip to content

Ambiguity in YAML parsing - tree-sitter-yaml grammar #535

Open
@char0n

Description

@char0n

Following flow sequences will not be parsed correctly:

test: [
]
---
test: [
 a, b, c
]

They need to have a significant whitespace before the closing ] symbol in order to parse correctly.

test: [
 ]
---
test: [
 a, b, c
 ]

The issue has been reported to grammar author: ikatyang/tree-sitter-yaml#29

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