anchor.diff:    end;
   end;
   
  -procedure EditorBracket_Highlight(Ed: TATSynEdit; AllowSymbols: string;
  +procedure EditorBracket_Highlight(Ed: TATSynEdit; AllowedSymbols: string;
     MaxDistance: integer);
   var
     Caret: TATCaretItem;
  
positive.code:   if PosX=Length(S) then Dec(PosX);
  
    CharFrom:= S[PosX+1];
    if Pos(CharFrom, AllowSymbols)=0 then exit;
  
    EditorBracket_GetCharKind(CharFrom, Kind, CharTo);
    if Kind=bracketUnknown then //allow caret after bracket too
      if PosX>0 then
      begin
        Dec(PosX);
        CharFrom:= S[PosX+1];
        EditorBracket_GetCharKind(CharFrom, Kind, CharTo);
        if Kind=bracketUnknown then exit;
      end
      else
  
negative.code:   cEditorTagForBracket = 1;
  
  function EditorBracket_GetPairForClosingBracketOrQuote(ch: char): char;
  procedure EditorBracket_Highlight(Ed: TATSynEdit; AllowedSymbols: string; MaxDistance: integer);
  
  
  implementation
  