def check.broken
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
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
61# the header already breaks across lines: some token of it is a newline
62def check.broken(toks: List<&2, Lex.Tok>) -> Bool:
63 match toks:
64 case Nil{}:
65 False{}
66 case Con{Lex.Tok{kk, _tx, _ln, _cl}, rest}:
67 Lazy.or_else(Lex.is_nl(kk), _u => check.broken(rest))