std.block.heal.core

check-errored-suspect

(check-errored-suspect scan lines leftover-errors)

create-block-scan

added in 4.1

(create-block-scan block lines)(create-block-scan block lines line col)(create-block-scan block lines line col end-col)

creates a scan window for a block.

The default arity scans the full block. The extended arities allow the caller to override the scan line range, start column, and optional end column when a smaller suspect region has already been identified.

create-close-hint-scan

added in 4.1

(create-close-hint-scan block lines scan interim interim-errors)

uses a later correct close delimiter to narrow the suspect scan window

default-max-col

get-block-lines

added in 4.0

(get-block-lines lines [start end] start-col & [end-col])

gets the block lines

get-errored

added in 4.0

(get-errored content)

checks content for irregular blocks

get-errored-loop

added in 4.0

(get-errored-loop block lines)

runs the check block loop

get-errored-raw

added in 4.0

(get-errored-raw lines blocks)

helper function for get-errored

group-blocks

added in 4.0

(group-blocks content)

groups the lines by colation sections

group-blocks-multi

added in 4.0

(group-blocks-multi entries)(group-blocks-multi entries col)

categorises the blocks

group-blocks-prep

added in 4.0

(group-blocks-prep content)

prepares the block entries for a file

group-blocks-prep-entries

added in 4.0

(group-blocks-prep-entries delimiters starts)

prepares the block entries for a file

group-blocks-single

added in 4.0

(group-blocks-single entries col)

creates a single block

group-entries

added in 4.0

(group-entries entries col)

groups entries by colation

group-min-col

added in 4.0

(group-min-col entries prev)

gets the minimum column

heal-content

added in 4.0

(heal-content content)

allow multiple passes to heal the delimiter

heal-content-complex-edits

(heal-content-complex-edits info errors)

heal-content-single-pass

added in 4.0

(heal-content-single-pass content)

heals the content in a single pass

localize-close-hint-scan

added in 4.1

(localize-close-hint-scan block lines)

runs a close-delimiter localization pass before the full structural check

tighter-scan?

added in 4.1

(tighter-scan? scan line col end-col)

checks if the candidate scan is narrower than the current scan

wrap-diff

added in 4.0

(wrap-diff print-fn)

wraps the heal function to output the diff

wrap-print-diff

added in 4.0

(wrap-print-diff print-fn)

print wrapper for the heal function