[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-c
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
The Microsoft calling convention is grammatically attached to the declarator, not to the function definition before any decl-specifiers as observed in the grammar:
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
The Microsoft calling convention is grammatically attached to the declarator, not to the function definition before any decl-specifiers as observed in the grammar:
https://github.com/tree-sitter/tree-sitter-c/blob/df6ac34d5eb1dccfac8f2a9011a8491300818d7c/grammar.js#L230-L235
Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
On each declarator, the
ms_call_modifier
is attached.Repro