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)
tree-sitter 0.22.3, tree-sitter-cpp 0.22.2
Describe the bug
Member variables that are initialized using the equal-initializer syntax (e.g., int x = 0;) show up in the tree as type function_definition rather than type field_declaration , as is the case when member variables are uninitialized or brace-initialized.
Steps To Reproduce/Bad Parse Tree
If you parse the following custom data type:
structA
{
int x = 0;
int y{0};
int z;
voidfunc() {}
};
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.22.3, tree-sitter-cpp 0.22.2
Describe the bug
Member variables that are initialized using the equal-initializer syntax (e.g.,
int x = 0;
) show up in the tree as typefunction_definition
rather than typefield_declaration
, as is the case when member variables are uninitialized or brace-initialized.Steps To Reproduce/Bad Parse Tree
If you parse the following custom data type:
You get the following parse tree:
Expected Behavior/Parse Tree
The text was updated successfully, but these errors were encountered: