def ends_colon
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
326# the line's last token that is not a space or a comment is `:`, so a header
327# ends at its `:` though a comment follows it (`def f() -> U32: # note`)
328def ends_colon(ss: String) -> Bool:
329 ends_colon.go(Lex.tokens(ss), False{})