Skip to content

fix: preserve fn newline metadata after semicolons#112

Open
mkaput wants to merge 3 commits intoelixir-tools:mainfrom
mkaput:pr/db35a96-fn-newline-metadata
Open

fix: preserve fn newline metadata after semicolons#112
mkaput wants to merge 3 commits intoelixir-tools:mainfrom
mkaput:pr/db35a96-fn-newline-metadata

Conversation

@mkaput
Copy link
Contributor

@mkaput mkaput commented Feb 17, 2026

Capture newline metadata for anonymous functions when the separator is a semicolon token that carries newline count.

This aligns cases like fn ;\n -> :ok end with Elixir metadata while avoiding incorrect newlines: 0 for same-line semicolons.

Adds deterministic regression assertions in the property-regression test block.

Capture newline metadata for anonymous functions when the separator is a semicolon token that carries newline count.

This aligns cases like `fn ;\n -> :ok end` with Elixir metadata while avoiding incorrect `newlines: 0` for same-line semicolons.

Adds deterministic regression assertions in the property-regression test block.
@mhanberg
Copy link
Contributor

need to rebase on main to solve conflicts with other prs

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.

2 participants