anchor.diff:    TRangeKinds = set of TRangeKind;
   
     // defines the ranges which can be folded
  -  TFoldKinds = set of (fkBrackets, fkComments1, fkComments2, fkStrings);
  +  TFoldKinds = set of (fkBrackets, fkComments1, fkComments2, fkStrings, fkRegion);
   
     // internal class used to keep trace of the useful informations of the previous line
     TSynD2SynRange = class(TSynCustomHighlighterRange)
     private
  +    namedRegionCount: Integer;
       nestedCommentsCount: Integer;
       tokenStringBracketsCount: Integer;
       rangeKinds: TRangeKinds;
  
positive.code:     if src_t.nestedCommentsCount <> nestedCommentsCount then exit(1);
      if src_t.tokenStringBracketsCount <> tokenStringBracketsCount then exit(1);
      if src_t.rString <> rString then exit(1);
      exit(0);
    end;
  end;
  
negative.code:     rangeKinds := src_t.rangeKinds;
      nestedCommentsCount := src_t.nestedCommentsCount;
      tokenStringBracketsCount := src_t.tokenStringBracketsCount;
      namedRegionCount := src_t.namedRegionCount;
    end;
  end;
  
  