Combine consecutive match clauses