def flush
import bolt@1.27.0.0/src/syntax/lex.bend as Leximport Base
285# the token so far joins the others
286def flush(kind: TokKind, sl: U32, sc: U32, +buf: List<&2, Char>, +toks: List<&2, Tok>) -> List<&2, Tok>:
287 +t = word(buf)
288 Bool.pick(List<&2, Tok>, List.is_empty(&2, Char, buf), toks, Tok{refine(kind, t), t, sl, sc} <> toks)