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
You ran into the same problem that is described in issue #231.
I suggested a fixed (see pull request #267) to solve it.
My understanding is that when the parser has read "bool t = a.b < 3", it is in state where both interpretations (as a template or a comparison) are possible, but he gives priority to the template version and discard the other.
The change I introduced lead the parser to fork and consider both interpretations until one of them leads to an error and is then discarded. In case both could be valid, the comparison version is preferred.
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.22.6
Describe the bug
Operator
<
is parsed as beginning of template argument list.Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
Repro
The text was updated successfully, but these errors were encountered: