Handle parentheses in patterns

Fix #90