Urara-Blog/node_modules/.pnpm-store/v3/files/cb/f5cceda62bf52d22901141dafdcdc93ae8503b1b2310e2bcb57aff605ecb5258d4fb6ce7ed05a4f04c87641b9cf74f970cce52f45c3c8b55cbb6e5afee0bfe
2022-08-14 01:14:53 +08:00

52 lines
922 B
Text

'use strict';
const selectorList = {
parse() {
return this.createSingleNodeList(
this.SelectorList()
);
}
};
const selector = {
parse() {
return this.createSingleNodeList(
this.Selector()
);
}
};
const identList = {
parse() {
return this.createSingleNodeList(
this.Identifier()
);
}
};
const nth = {
parse() {
return this.createSingleNodeList(
this.Nth()
);
}
};
const pseudo = {
'dir': identList,
'has': selectorList,
'lang': identList,
'matches': selectorList,
'is': selectorList,
'-moz-any': selectorList,
'-webkit-any': selectorList,
'where': selectorList,
'not': selectorList,
'nth-child': nth,
'nth-last-child': nth,
'nth-last-of-type': nth,
'nth-of-type': nth,
'slotted': selector
};
module.exports = pseudo;