def ends_colon.go
import bolt@1.27.0.0/src/syntax/outline.bend as Outlineimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
318# the tokens walked so far ended in `:`; a space or a comment keeps that
319def ends_colon.go(toks: List<&2, Lex.Tok>, prev: Bool) -> Bool:
320 match toks:
321 case Nil{}:
322 prev
323 case Con{Lex.Tok{+kk, tx, ln, cl}, t}:
324 ends_colon.go(t, Bool.pick(Bool, Lex.significant(kk), ends_colon.is(kk), prev))