I'm not sure if this is intentional or just accidental:
If you have a JS function, e.g. (nonsense content here)
var a = "hello";
a = a + a;
If you collapse on the opening bracket, it will collapse to:
I guess this is because the // is at the same level as the opening bracket, and it collapses until it finds something else at that position, but in this case it is not the "}", but rather the "/" of "//". (It collapses nicely if you place some whitespace before //.)
Is this a bug, or just a side-effect of how the collapse functionality works?