When parsing C code that uses the __extension__ keyword, the parse tree generated by Tree-sitter C language incorrectly treat typedef declarations as function definitions.
To Reproduce
Parse the following C code:
__extension__ typedef struct {
long long int quot;
long long int rem;
} lldiv_t;
Expected behavior
The parse tree should correctly recognize that this is a typedef declaration and not a function definition.
When parsing C code that uses the
__extension__
keyword, the parse tree generated by Tree-sitter C language incorrectly treattypedef
declarations as function definitions.To Reproduce
Parse the following C code:
Expected behavior The parse tree should correctly recognize that this is a typedef declaration and not a function definition.