-
Notifications
You must be signed in to change notification settings - Fork 42
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
Faulty parsing of arrays that look like they might be strings #29
Faulty parsing of arrays that look like they might be strings #29
Comments
Interestingly following is parsed correctly: foo: [
] One empty space makes difference here. There is actually a test case in corpus that demonstrate this empty space significance: https://github.com/ikatyang/tree-sitter-yaml/blob/master/corpus/spec.txt#L6869 @ikatyang any idea on this one? Thanks! |
Worth noting that we see the same thing with objects defined with a curly brace. This parses correctly: foo: {
} But this does not: foo: {
} |
The commit as written does not include running tree-sitter generate. Happy to run that if someone can point me to the documentation for how that can be done for the current iteration of the repo. Resolves: ikatyang#29 Relates-to: tree-sitter-grammars#2
Sorry for the clumsy title!
is successfully parsed by all the other parsers that I have found, as being equivalent to
foo: []
But this parser says:
The text was updated successfully, but these errors were encountered: