def check.or_close
import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrapimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
235# a close bracket, else angle motion
236def check.or_close(opened: Act, +kk: Lex.TokKind, +tx: String, glued: Bool) -> Act:
237 match opened:
238 case ANone{}:
239 check.or_angle(check.on_close(kk, tx), kk, tx, glued)
240 case other:
241 check.keep(other, kk, tx, glued)