def work.seg
import bolt@1.27.0.0/src/rules/suspicious/eager.bend as Eagerimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
84# the argument a leaf leaves behind: a comma of a pick's own group moves on
85def work.seg(kk: Lex.TokKind, +seg: U32) -> U32:
86 match kk:
87 case Lex.TComma{}:
88 Bool.pick(U32, U32.is_lt(seg, 9), (seg + 1 : U32), seg)
89 case other:
90 seg