-
Notifications
You must be signed in to change notification settings - Fork 111
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.26.3
Describe the bug
forms like https://neovim.io#docs will be falsely parsed as tags
tags should only be parsed at with a whitespace before it or at the start of the line.
Steps To Reproduce/Bad Parse Tree
- a file with
https://example.com/#/settings#privacy - tree:
(document ; [0, 0] - [1, 0]
(section ; [0, 0] - [1, 0]
(paragraph ; [0, 0] - [1, 0]
(inline ; [0, 0] - [0, 38]
(inline ; [0, 0] - [0, 38]
(tag) ; [0, 20] - [0, 30]
(tag)))))) ; [0, 30] - [0, 38]Expected Behavior/Parse Tree
(document ; [0, 0] - [1, 0]
(section ; [0, 0] - [1, 0]
(paragraph ; [0, 0] - [1, 0]
(inline ; [0, 0] - [0, 38]
(inline))))) ; [0, 30] - [0, 38]
Repro
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working