Editor Folding - CASE Statements fold more than they should

The Code Folding feature seems to not understand a case statement. Is there a way to stop a Case Statement from throwing off the “BEGIN/END” matching?

I have included a small sample of what I am talking about. I should be able to fold the second BEGIN and collapse the code down such that I only see the last end. I should be able to collapse the SELECT statement such that I see both END statements.

Thanks,

David

DECLARE

v_TMP VARCHAR2(50);

BEGIN

BEGIN

SELECT CASE WHEN 1=1

THEN ‘FIRST’

ELSE ‘SECOND’

END My_Case

INTO v_TMP

FROM DUAL;

– When collapsing the “SELECT”, it should not include this comment.

EXCEPTION

WHEN NO_DATA_FOUND THEN

DBMS_OUTPUT.PUT_LINE(‘Test’);

END;

END;

Hi, David. Yes, it is an issue. it is fine in old Toad. I’ve logged this bug.Thanks for your help.

I have version 13.1.0.78 - still have the same issue. Any update on the progress of this issue?

see [16.0.25] Code folding doesn't work for nested case statements - #4 by christian.feuz for a workaround