Commit 52099ff
fix: preserve fn newline metadata after semicolons (#112)
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.
---------
Co-authored-by: Mitchell Hanberg <mitch@mitchellhanberg.com>1 parent 708da64 commit 52099ff
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2110 | 2110 | | |
2111 | 2111 | | |
2112 | 2112 | | |
2113 | | - | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
2114 | 2125 | | |
2115 | 2126 | | |
2116 | 2127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2297 | 2297 | | |
2298 | 2298 | | |
2299 | 2299 | | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2300 | 2304 | | |
2301 | 2305 | | |
2302 | 2306 | | |
| |||
0 commit comments