The documentation to CandyFolds claims:
"the regular expression tests the line of text on the starting point of the indentation"
However, this is not true. For example, for configuring a "while" Statement in Perl, it is not sufficient to enter as regular expression
It is necessary to write the regular expression like this:
I suspect that CandyFolds matches the regexp to the whole line, and not to the part which starts at the intendation.