tree-sitter-cpp
tree-sitter-cpp copied to clipboard
bug: specific class definition pattern produces ERROR nodes
Did you check existing issues?
- [X] I have read all the tree-sitter docs if it relates to using the parser
- [X] 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.2
Describe the bug
Steps To Reproduce/Bad Parse Tree
combining class + macro + access identifier + using statement
Expected Behavior/Parse Tree
The using statement should be recognized as an alias declaration node.
Repro
#define MACRO /*no-op*/
class MACRO Class {
public:
using A = int;
};