3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

Answer principles round 1: 0 🔴, 2 🟡; read an inline directive from the InlineSource holding its text and closer, and name the quote edges apart from the quotes passed

This commit is contained in:
2026-10-18 11:31:11 +02:00
committed by Lillem4n
parent 15f7d47fb4
commit 5f8c7cf2eb
5 changed files with 21 additions and 23 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ function readLineEnding(scan: Scan, index: number): number {
function readDirective(scan: Scan, inline: InlineSource, prefix: ClaimedPrefix): Result<number> {
const held = scan.spans.get(prefix.index)
if (held !== undefined) return pushDirective(scan, held, prefix.index)
const directive = readInlineDirective(scan.source, prefix, inline.codeSpanCloser)
const directive = readInlineDirective(inline, prefix)
if (directive.fault !== undefined) return faulted(directive.fault, scan.path)
return pushDirective(scan, directive.value, prefix.index)
}