def directive.tail

yaml-for-bend@0.1.1.0 · scan.bend:1266

import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base
import yaml-for-bend@0.1.1.0/token.bend as T

1266def directive.tail(+cur: Cur, +st: Sc, tok: Maybe<&2, T.Tok>, +at: T.Mark) -> Step:
1267  when(Step, is_breakz(peek(cur.s(cur), 0n)),
1268    u => Go{directive.put(sc.with.cur(st, cur), tok, at)},
1269    u => fail(st, "did not find expected comment or line break while scanning a directive", at))

Uses (13)

Used by (1)