Bug 19351 – add code folding for case statements

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-11-03T08:20:17Z
Last change time
2018-11-24T14:10:17Z
Assigned to
No Owner
Creator
Rainer Schuetze

Comments

Comment #0 by r.sagitario — 2018-11-03T08:20:17Z
from https://forum.dlang.org/thread/[email protected]: can't collapse/fold a case statement in the editor for some reason ;/ case statements are blocks. They might not be represented as such but they are semantically the same as blocks. The representation is irrelevant. Since, in D, every case must end with a break or return or throw, it means that the next case terminates the block automatically. So, all that needs to be done, if it is possible is to collapse everything up to the next case statement or terminal }.
Comment #1 by r.sagitario — 2018-11-24T14:10:17Z