def at.read
import bolt@1.27.0.0/src/syntax/word.bend as Wordimport Base
99# the name at col, from here up to the next newline
100def at.read(ss: String, stop: Bool, st: W, +col: U32) -> String:
101 match ss stop:
102 case SNil{} _:
103 finish(st, col)
104 case SCon{h, t} True{}:
105 finish(st, col)
106 case SCon{+h, t} False{}:
107 at.read(t, Char.is_eq(h, '\n'), at.advance(Char.is_eq(h, '\n'), h, st, col), col)