()
| 53 | } |
| 54 | |
| 55 | function* SelectorComponentParser() { |
| 56 | // const [selector]: [ |
| 57 | // string |
| 58 | // ] = yield /^(:root|[*]|::after|::before|html|[a-z][\w]*)/; |
| 59 | const [selector]: [string] = yield /^([.#]?[-:=~*>.#\(\)\w\[\]]+)/; |
| 60 | return selector; |
| 61 | } |
| 62 | |
| 63 | function* RuleParser(): ParseGenerator<CSSRule> { |
| 64 | const declarations: Array<CSSDeclaration> = []; |