anchor.diff:  implementation
   
   const
  -  cHeaderChars: UnicodeString = '-=\''"`:^~_*+#<>';
  +  cHeaderChars = '-=\''"`:^~_*+#<>';
   
   class function TTreeHelperRest.IsHeaderOfChar(const S: UnicodeString; ch: WideChar): boolean;
   var
  
positive.code:   Result:= false;
  end;
  
  class function TTreeHelperRest.GetLevel(NewChar, PrevChar: WideChar): integer;
  begin
    case NewChar of
      '=': Result:= 1;
      '-': Result:= 2;
      '~': Result:= 3;
      '"': Result:= 4;
      else Result:= 1;
    end;
  end;
  
  class procedure TTreeHelperRest.GetHeaders(Ed: TATSynEdit; Data: TATTreeHelperRecords);
  var
    DataItem: TATTreeHelperRecord;
    St: TATStrings;
    S: UnicodeString;
    PrevHeaderChar, NewHeaderChar: WideChar;
    NLen, iLine: integer;
  begin
    Data.Clear;
    PrevHeaderChar:= #0;
    NewHeaderChar:= #0;
    St:= Ed.Strings;
    for iLine:= 1{not 0} to St.Count-1 do
    begin
      S:= St.Lines[iLine];
      if S='' then Continue;
      if IsHeaderLine(S) then
      begin
        PrevHeaderChar:= NewHeaderChar;
        NewHeaderChar:= S[1];
        NLen:= St.LinesLen[iLine-1];
        if (NLen>0) and (NLen<=Length(S)) then
        begin
          DataItem.X1:= 0;
          DataItem.Y1:= iLine-1;
          DataItem.X2:= 0;
          DataItem.Y2:= iLine;
          DataItem.Level:= GetLevel(NewHeaderChar, PrevHeaderChar);
          DataItem.Title:= St.Lines[iLine-1];
          DataItem.Icon:= -1;
          Data.Add(DataItem)
  
negative.code:   private
      class function IsHeaderOfChar(const S: UnicodeString; ch: WideChar): boolean;
      class function IsHeaderLine(const S: UnicodeString): boolean;
    public
      class procedure GetHeaders(Ed: TATSynEdit; Data: TATTreeHelperRecords);
    end;
  