The context-sensitive pattern-matching task