Fix compound matching with parens.

Closes #11918