Fixed the right-parentheses coloring logic.