def ends_colon

bolt@1.27.0.0 · src/syntax/outline.bend:326

import bolt@1.27.0.0/src/syntax/outline.bend as Outline
import 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{})

Uses (4)

Used by (2)