def css.simple.pseudo
gralha-css-style@0.1.0.1 · css.bend:193
import gralha-css-style@0.1.0.1/css.bend as Css
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
193def css.simple.pseudo(scan: U.Scan, +context: CSSContext, next: String -> Bool, nested: String -> Bool) -> Bool:
194 U.Scan{h, t} = scan
195 +key = css.lower(h)
196 +tail = t
197 css.simple.pseudo.arg(U.choose(U.Scan, U.prefix(tail, "("), css.scan(U.drop(tail, "("), 41), U.Scan{"", ")" ++ tail}), key, context, next, nested)
198
199@unsafe