Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
char0n opened this issue Jul 29, 2021 · 0 comments
Open

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

char0n opened this issue Jul 29, 2021 · 0 comments
Labels
ApiDOM bug Something isn't working YAML

Comments

@char0n
Copy link
Member

char0n commented Jul 29, 2021

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

@char0n char0n added bug Something isn't working ApiDOM YAML labels Jul 29, 2021
@char0n char0n self-assigned this Jul 29, 2021
@char0n char0n removed their assignment Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ApiDOM bug Something isn't working YAML
Projects
None yet
Development

No branches or pull requests

1 participant