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
This might be difficult to handle, as the macro could be a regular function call that just happened to have no newline after it and is indeed missing a semicolon. A heuristic based on the missing line-break would work but be rather hacky. The parser recovers from this though.
Repro
SET_ALIGN(16) Foo bar = {};
The text was updated successfully, but these errors were encountered:
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)Playground (0.23.4?)
Describe the bug
Using the macro
SET_ALIGN(16)
as prefix instead of the directstruct alignas(16)
leads to a "missing semicolon" error.Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
This might be difficult to handle, as the macro could be a regular function call that just happened to have no newline after it and is indeed missing a semicolon. A heuristic based on the missing line-break would work but be rather hacky. The parser recovers from this though.
Repro
The text was updated successfully, but these errors were encountered: