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'd expect to get a consistent parsing, for example a recursive binary_operatororunion.
Regarding the the subscript versus generic_type I believe it's similar to previous issue - #291 so I guess it's not solvable.
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
When using the
|
union operator, the output structure depends on the order of the types. For example:a
are parsed to recursivebinary_operator
s, each with "right" and "left" nodes andlist[float]
is parsed tovalue
and subscriptb
are parsed tounion
type, wherelist[float]
is parsed asgeneric_type
andstr | bool
tobinary_operator
.Steps To Reproduce/Bad Parse Tree
Use the example above in the tree-sitter playground for python - https://tree-sitter.github.io/tree-sitter/7-playground.html
Expected Behavior/Parse Tree
I'd expect to get a consistent parsing, for example a recursive
binary_operator
orunion
.Regarding the the
subscript
versusgeneric_type
I believe it's similar to previous issue - #291 so I guess it's not solvable.Repro
The text was updated successfully, but these errors were encountered: