def attributes.go
import gralha-xml-doc@0.1.0.1/xml.bend as Xmlimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
160def attributes.go(step: Next) -> Tag:
161 match step:
162 case Next{kind, ch, as, tail}:
163 match kind:
164 case 0: attributes.go(next.of(as, tail))
165 case 1: Tag{as, tail, False{}}
166 case 2: attributes.close(U.until(tail, 62, ""), as)
167 case 3: attributes.go(attr.read(SCon{Chr{ch}, tail}, as))
168 case _: Tag{as, "", False{}}