tree-sitter-cpp icon indicating copy to clipboard operation
tree-sitter-cpp copied to clipboard

bug: specific class definition pattern produces ERROR nodes

Open lljbash opened this issue 1 year ago • 0 comments

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

image image

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;
};

lljbash avatar May 06 '24 10:05 lljbash