Fixed corner cases during parenthesis highlighting.