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
When we parse the struct which has the name and typedef name, with "attribute" tag, the parser will truncate it before the "attribute" and recoginize the " attribute" is an function, then parse failed.
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.79. Please mark this comment with 👍 or 👎 to give our bot feedback!
This looks like an issue with the C grammar in particular, and not with the tree-sitter framework as a whole. (Possibly a dup of #45) I'm going to move this issue to the C grammar's repo so we can triage it there.
When we parse the struct which has the name and typedef name, with "attribute" tag, the parser will truncate it before the "attribute" and recoginize the " attribute" is an function, then parse failed.
typedef struct mxt_object { u8 type; u16 start_address; u8 size_minus_one; u8 instances_minus_one; u8 num_report_ids; } __attribute__((packed)) mxt_object_t;
But if we removed the name and typedef name in speicifer, the parser may be working.
Thanks.
The text was updated successfully, but these errors were encountered: