3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 23:25:43 +01:00

Answer prose round 1: 0 🔴, 7 🟡 (0 misread); state the sweep's rule as line equality with the reference, and reword its comments

This commit is contained in:
2026-10-31 01:18:45 +01:00
committed by Lillem4n
parent 42fc6d97fb
commit 085ad7f508
5 changed files with 53 additions and 45 deletions
@@ -36,7 +36,7 @@ test('reduces a line alike dropping every run a pass may or the first alone', ()
)
})
// Drops the first run a pass finds alone, with every misflanked highlight, and takes no cap.
// Drops only the first run each pass finds, with every misflanked highlight, and takes no cap.
function firstRunLine(nodes: readonly AdfNode[], container: LineContainer): Result<AdfNode[]> {
const leaves = portableLeaves(nodes, container, [], 0)
if (!leaves.ok) return leaves