bug: wrongly parsing #define
when the right side of the definition is empty
#212
Labels
#define
when the right side of the definition is empty
#212
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)0.22.6
Describe the bug
The AST for C code with empty right side
#define
gets parsed incorrectly when a space or more is placed after.Steps To Reproduce/Bad Parse Tree
In the code below, add a space after the second
#define id(x)
Expected Behavior/Parse Tree
Repro
The text was updated successfully, but these errors were encountered: