You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read all the tree-sitter docs if it relates to using the parser
I have searched the existing issues of tree-sitter-julia
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
x, = (2, 3) is valid Julia code. It assigns the first value of the tuple (2) to x and discards the rest. It does the same thing as x, _ = (2, 3). However, the Tree-sitter shows an error after x.
x, y, = (2, 3, 4) is also valid code but shows an error after y.
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
x, = (2, 3)
is valid Julia code. It assigns the first value of the tuple (2) tox
and discards the rest. It does the same thing asx, _ = (2, 3)
. However, the Tree-sitter shows an error afterx
.x, y, = (2, 3, 4)
is also valid code but shows an error aftery
.x, _ = (2, 3, 4)
does not error. It produces:Steps To Reproduce/Bad Parse Tree
echo 'x, = (2, 3)' > demo.jl
tree-sitter parse demo.jl
Expected Behavior/Parse Tree
I think the Tree-sitter output should be something like:
Repro
No response
The text was updated successfully, but these errors were encountered: