bug: comment not recognized inside binary expression
calebdw opened this issue · 0 comments
calebdw commented
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 of tree-sitter-php
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version
)
No response
Describe the bug
The fix introduced in 56f153e which adjusted the comment precedence incidentally broke comments inside other expressions (which there we no tests for).
Steps To Reproduce/Bad Parse Tree
n/a
Expected Behavior/Parse Tree
n/a
Repro
if (
true
// this is a comment
|| false
) {}