Improper highlighting of nested matching pairs