Block folding stops at #ifdef

When i want to collapse a function (block), it doesn't collapse everything in between the braces, but it just collapses the piece until it encounters a #ifdef. I have beta 7.
image