Skip to content

Parser: allow newline after fn return-type#168

Merged
danieljohnmorris merged 1 commit into
mainfrom
fix/multi-line-fn-body
May 11, 2026
Merged

Parser: allow newline after fn return-type#168
danieljohnmorris merged 1 commit into
mainfrom
fix/multi-line-fn-body

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Spec promises newlines are non-semantic, but the parser broke when a function header was followed by a newline before the body (f>R t t\nbody errored ILO-P003). The header/body boundary now accepts either a semicolon or end-of-line. Cross-engine tests + multi-line example.

tests + example for multi-line fn bodies.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@danieljohnmorris danieljohnmorris merged commit 26cdee2 into main May 11, 2026
5 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/multi-line-fn-body branch May 11, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant