Fixed handling of mismatched parens, brackets, and braces