c2977574 by Adam Heath

Oops, 'list' was only matching on one item, because the boolean was

inverted.
1 parent 17c366bb
......@@ -142,9 +142,9 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => {
const matchers = ast.list.map(s => makeMatcher(s))
return (context, node, parent, i, debug, special) => {
for (const matcher of matchers) {
if (!matcher(context, node, parent, i, debug, special)) return false
if (matcher(context, node, parent, i, debug, special)) return true
}
return true
return false
}
}
case 'compound': {
......