3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-13 04:08:29 +01:00

Answer auto-reviewer round 1: 0 🔴, 0 🟡; hold the Line comment to one line

This commit is contained in:
2026-10-18 12:16:49 +02:00
committed by Lillem4n
parent df7bc0b266
commit cc01b5e4c6
+1 -4
View File
@@ -62,10 +62,7 @@ type ContainerStart = { kind: 'blockquote'; rest: Line } | { fresh: boolean; ind
type ParagraphLine = { position: SourcePosition; text: string }
// The line from an absolute column on, so a tab after a cut still measures its stop. When a cut splits a tab, its leftover
// columns, at most 3 and all blank, go in `spaces` rather than in a new `text`. Blankness reads `text` alone, and a block
// reads the line through `lineText`. After a `largestOpenerIndentation` cut, `spaces` is non-zero only on a line indented as
// code, so a marker check no code-indent guard precedes, as in `blockquoteRest`, refuses such a line.
// A cut through a tab leaves its columns as blank `spaces` before `text`; a marker check reads `spaces` first unless a code-indent guard precedes.
type Line = { column: number; spaces: number; text: string }
type LeafOpener = { index: number; position: SourcePosition }