def close_any
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
262# a close bracket, or a run of `>`, closes what it can
263def close_any(+stack: List<&2, Frame>, +close: Lex.Tok) -> List<&2, Frame>:
264 Lex.Tok{k, +t, +l, +c} = close
265 close_any.at(String.starts_with(t, ">"), stack, close, t, l, c)