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 => { ...@@ -308,8 +308,8 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => {
308 case 'content': 308 case 'content':
309 return (context, node, parent, i, debug, special) => special === PSEUDO_ELEMENTS.content 309 return (context, node, parent, i, debug, special) => special === PSEUDO_ELEMENTS.content
310 default: 310 default:
311 console.error('pseudo-class', nodeUtil.inspect({ selector, ast }, { depth: null, colors: true })) 311 console.error('pseudo-element', nodeUtil.inspect({ selector, ast }, { depth: null, colors: true }))
312 throw new Error(`Unknown pseudo-class: ${ast.name}`) 312 throw new Error(`Unknown pseudo-element: ${ast.name}`)
313 } 313 }
314 default: 314 default:
315 throw new Error(`Unhandled ast: ${ast.type}`) 315 throw new Error(`Unhandled ast: ${ast.type}`)
......