Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
Normal constants (FOO_BAR) are properly parsed as constants, but private ones (_FOO_BAR) aren't
Steps To Reproduce/Bad Parse Tree
The first line is parsed as a constant, the second - as a variable
You can even see it right here on Github
Expected Behavior/Parse Tree
They should both be constants
Repro
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version)No response
Describe the bug
Normal constants (
FOO_BAR) are properly parsed as constants, but private ones (_FOO_BAR) aren'tSteps To Reproduce/Bad Parse Tree
The first line is parsed as a constant, the second - as a variable
You can even see it right here on Github
Expected Behavior/Parse Tree
They should both be constants
Repro