cbb7401a by Adam Heath

Fix default block matching for pseudo-element, it was mentioning

pseudo-class.
1 parent b79bf0cb
......@@ -308,8 +308,8 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => {
case 'content':
return (context, node, parent, i, debug, special) => special === PSEUDO_ELEMENTS.content
default:
console.error('pseudo-class', nodeUtil.inspect({ selector, ast }, { depth: null, colors: true }))
throw new Error(`Unknown pseudo-class: ${ast.name}`)
console.error('pseudo-element', nodeUtil.inspect({ selector, ast }, { depth: null, colors: true }))
throw new Error(`Unknown pseudo-element: ${ast.name}`)
}
default:
throw new Error(`Unhandled ast: ${ast.type}`)
......