[cvs-nhc98] Fix bugs in parsing patterns with parentheses.