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-cpp
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
Currently parsing of: int** arrayOfPointers = new int*[10];
is wrong.
Since declarator can only be new_declarator and not a list of declarators which one of them is new_declarator
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
Currently parsing of:
int** arrayOfPointers = new int*[10];
is wrong.
Since declarator can only be new_declarator and not a list of declarators which one of them is new_declarator
Steps To Reproduce/Bad Parse Tree
declaration [0, 0] - [0, 37]
type: primitive_type [0, 0] - [0, 3]
declarator: init_declarator [0, 3] - [0, 31]
declarator: pointer_declarator [0, 3] - [0, 21]
declarator: pointer_declarator [0, 4] - [0, 21]
declarator: identifier [0, 6] - [0, 21]
value: new_expression [0, 24] - [0, 31]
type: primitive_type [0, 28] - [0, 31]
ERROR [0, 31] - [0, 36]
lambda_capture_specifier [0, 32] - [0, 36]
number_literal [0, 33] - [0, 35]
Expected Behavior/Parse Tree
Maybe add more declarators for new_expression besides new_declarator?
Repro
The text was updated successfully, but these errors were encountered: