There is a problem of folding in rules with beginRegion + endRegion.
<StringDetect String="hello" endRegion="region1" beginRegion="region2" />
In this case, the "hello" string is part of the "region1" and "region2" regions simultaneously, which generates folding problems. The ideal behavior is that "hello" isn't part of "region1", but of "region2". That is, don't publish length of endRegion folding in rules with beginRegion+endRegion.
For example, in .desktop files:
The following XML files use rules with beginRegion + endRegion:
- asp.xml c.xml