3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 06:35:44 +01:00

Pin what the doomed openers keep: the carry and the image literal brackets hold

This commit is contained in:
2026-09-19 02:09:19 +02:00
parent 50200bcc18
commit 29bb0a29f6
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ type Run = { canClose: boolean; canOpen: boolean; character: string; index: numb
// `container` is `undefined` inside a directive's content slot, the emitter's `bracketed`.
type Scan = {
container: LineContainer | undefined
// Pieces below this have been walked for openers to deactivate, so a nest of doomed brackets stays linear.
// Pieces below this have been walked for openers to deactivate: one left active reaches closeLink, whose image and carry guards refuse what literal brackets hold fine.
deactivatedBefore: number
definitions: LinkDefinitions
openingSpellableLink: boolean