Packages
Packages copied to clipboard
[D] `case` statements unfoldable
Expected behavior
Code between case should be foldable in D as it is in C/C++.
switch (a) {
case 0:
// not foldable code
break;
case 1:
// not foldable code
break;
}
Actual behavior
The code between case statements is not foldable, because indentation based folding is disabled for D and no syntax based folding rules exist for such expressions.
Steps to reproduce
- Paste the code into a new view
- Set syntax to D
- Hover the gutter (no folding buttons appear on line 3 and 7)