Custom Code Folding - Conflict with existing fold regions

Hello,

I’m trying to enable folding for code blocks of the following format:

// &begin[*name*]
...
// &end[*name*]

The problem I’m facing is that exisiting fold regions seem to have a higher priority in some cases. For example, when this block is folded:

// &begin[Blank]
// ...normal comment...
(...some code...)
// &end[Blank]

it looks like this:

//...
(...some code...)
// &end[Blank]

But I want the entire block (from the begin to the end marker) to be folded.

I would appreciate some guidance on how to solve this issue. Thanks!