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
Multiline function signatures with type annotations were incorrectly
parsed as tuples instead of calls when newlines appeared between
parentheses. For example:
```julia
function (
::A
)()
end
```
was parsed as `(function (tuple ...) (block))` instead of the correct
`(function (call (parens ...)) (block))`, inconsistent with the
single-line version `function (::A)() end`.
The issue was in parse_function_signature where `peek(ps, 2)` was used
to detect if a call pattern follows the closing parenthesis, but this
didn't skip newlines. Changed to `peek(ps, 2, skip_newlines=true)` to
properly detect the opening parenthesis of the argument list even when
separated by whitespace.
🤖 Generated with [Claude Code](https://claude.ai/code)
better...
0 commit comments