Commit 708da64
fix: parse newline ternary continuation after ellipsis (#115)
Ellipsis was being treated as standalone before `//` when ternary
continuation arrived with newline metadata, which produced a mismatched
AST for forms like `x...\n//y`.
This change detects newline-associated ternary continuation in
`parse_ellipsis_op/1` and keeps existing semicolon-separated behavior
intact (`x...;//y`).
It also adds regression assertions for newline and semicolon-separated
ternary continuation cases in the property-regression test block.
---------
Co-authored-by: Mitchell Hanberg <mitch@mitchellhanberg.com>1 parent f0a79a0 commit 708da64
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1407 | 1418 | | |
1408 | 1419 | | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
1409 | 1429 | | |
1410 | 1430 | | |
1411 | 1431 | | |
| |||
2911 | 2931 | | |
2912 | 2932 | | |
2913 | 2933 | | |
2914 | | - | |
| 2934 | + | |
2915 | 2935 | | |
2916 | 2936 | | |
2917 | 2937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2305 | 2305 | | |
2306 | 2306 | | |
2307 | 2307 | | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2308 | 2315 | | |
2309 | 2316 | | |
2310 | 2317 | | |
| |||
2319 | 2326 | | |
2320 | 2327 | | |
2321 | 2328 | | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2322 | 2343 | | |
2323 | 2344 | | |
2324 | 2345 | | |
| |||
0 commit comments