Open char0n opened 1 week ago
asyncapi: 2.4.0 info: version: '1.0.0' title: Something # Badly indented
On following fixture, in tree-sitter-playground, we can see that the error is ported from the end of previous line:
https://tree-sitter.github.io/tree-sitter/playground
I would expect the error be generated only for line 4. The parser is kind of greedy and includes the new line from line 3 into the error as well.
ERROR [3, 0] - [3, 36]
Refs https://github.com/tree-sitter-grammars/tree-sitter-yaml/issues/16
On following fixture, in tree-sitter-playground, we can see that the error is ported from the end of previous line:
Steps To Reproduce/Bad Parse Tree
https://tree-sitter.github.io/tree-sitter/playground
Expected Behavior/Parse Tree
I would expect the error be generated only for line 4. The parser is kind of greedy and includes the new line from line 3 into the error as well.
Refs https://github.com/tree-sitter-grammars/tree-sitter-yaml/issues/16