Open dimbleby opened 3 years ago
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: {
}
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: