forked from ikatyang/tree-sitter-yaml
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Did you check existing issues?
- I have read all the tree-sitter docs if it relates to using the parser
- I have searched the existing issues
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version
)
tree-sitter 0.24.3 (bdfe32402e85673bbc693216f0a6ef72c98bb665)
Describe the bug
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:
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.
ERROR [3, 0] - [3, 36]
Repro
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working