def css.simple.pseudo.arg
import gralha-css-style@0.1.0.1/css.bend as Cssimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
188def css.simple.pseudo.arg(+scan: U.Scan, +key: String, +context: CSSContext, next: String -> Bool,
189 nested: String -> Bool) -> Bool:
190 U.Scan{h, t} = scan
191 U.prefix(t, ")") && U.branch(Bool, U.string.equal(key, "not"), _ => Bool.not(nested(h)), _ => css.pseudo(key, h, context)) && next(U.drop(t, ")"))