def check.close_text
import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrapimport Base
139# a closing bracket, as the depth it lowers; ANone when it is not one
140def check.close_text(+tx: String) -> Act:
141 Bool.pick(Act, String.eq(tx, ")"), AUnparen{},
142 Bool.pick(Act, String.eq(tx, "]"), AUnbrack{},
143 Bool.pick(Act, String.eq(tx, "}"), AUnbrace{}, ANone{})))