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
The tree-sitter c grammar does not handle this ambiguity correctly.
Just FYI this grammar will not ever handle this correctly. It intentionally only uses syntax (not semantics) and because of how C is designed: type vs var in cases like this require semantic information.
Hi,
in the C language there is an ambiguity with the syntax
T(a);
:T
is a type, this is a variable declarationThe tree-sitter c grammar does not handle this ambiguity correctly.
Example:
int(a)
is parsed asdeclaration
myInt(d)
is parsed ascall_expression
Is this a desired limitation of tree-sitter, or is this a bug?
The text was updated successfully, but these errors were encountered: