def close.yes
import bolt@1.27.0.0/src/syntax/word.bend as Wordimport Base
22# the run holds the column: keep it; otherwise the hit so far
23def close.yes(ok: Bool, run: List<&2, Char>, hit: Maybe<&2, String>) -> Maybe<&2, String>:
24 match ok:
25 case True{}:
26 Some{text(run)}
27 case False{}:
28 hit