def scan.inst
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1096def scan.inst(i: Maybe<&2, Inst>, c: Maybe<&2, Char>, +any: Bool, +pc: U32, caps: List<&2, Maybe<&2, U32>>, items: List<&2, Th>, best: Maybe<&2, List<&2, Maybe<&2, U32>>>) -> Sc:
1097 match i:
1098 case Some{IMatch{}}:
1099 scan.hit(any, caps, items)
1100 case Some{ISet{neg, set}}:
1101 scan.char(c, neg, set, pc, caps, items, best)
1102 case _:
1103 Sc{items, best, False{}}