def color.word

gralha-svg-render@0.1.0.1 · svg.bend:692

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

692def color.word(+s: String, +acc: String) -> U.Scan:
693  match s:
694    case SNil{}: U.Scan{U.rev(acc, ""), ""}
695    case SCon{Chr{c}, tail}:
696      U.branch(U.Scan, U.space(c) || U32.is_eq(c, 44) || U32.is_eq(c, 47) || U32.is_eq(c, 41),
697        _ => U.Scan{U.rev(acc, ""), s}, _ => color.word(tail, SCon{Chr{c}, acc}))

Uses (8)

Used by (1)