()
| 129 | } |
| 130 | |
| 131 | function* StylesheetParser() { |
| 132 | const elements: Array<any> = []; |
| 133 | |
| 134 | yield whitespaceMay; |
| 135 | while (yield hasMore) { |
| 136 | elements.push(yield [RuleParser, CommentParser, MediaQueryParser]); |
| 137 | yield whitespaceMay; |
| 138 | } |
| 139 | return elements; |
| 140 | } |
| 141 | |
| 142 | function parseCSS(cssSource: string) { |
| 143 | return parse(cssSource, StylesheetParser()); |