MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / SelectorComponentParser

Function SelectorComponentParser

src/tailwindcss.test.ts:55–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55function* 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
63function* RuleParser(): ParseGenerator<CSSRule> {
64 const declarations: Array<CSSDeclaration> = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected