Make captures able to express and-patterns.