bug: keyword_argument
in BUILD files doesn't contain trailing comma
#7
Labels
bug
Something isn't working
keyword_argument
in BUILD files doesn't contain trailing comma
#7
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)NVIM v0.10.0-dev-2995+ga1550dbf0
Describe the bug
in a BILD file if you have:
And you want to write a query like this:
To select the entire parameter
target_compatible_with
, thekeyword_argument
range doesn't include the trailing comma aftertarget_compatible_with
Steps To Reproduce/Bad Parse Tree
With this example in neovim, if you use
:InspectTree
you see this:note the trailing is not highlighted.
if you select the common instead, it's only part of the higher level arguments:
Expected Behavior/Parse Tree
I think the trailing comma should be part of the keyword_argument range because if you want to perform an operation like deleting the entire argument, the comma is semantically included in that
Repro
No response
The text was updated successfully, but these errors were encountered: