diff --git a/components/synedit/synhighlighterany.pas b/components/synedit/synhighlighterany.pas index 7778e20770..ab6cfc6bb4 100644 --- a/components/synedit/synhighlighterany.pas +++ b/components/synedit/synhighlighterany.pas @@ -896,7 +896,9 @@ end; procedure TSynAnySyn.SetComments(Value: CommentStyles); begin + if fComments = Value then exit; fComments := Value; + MakeMethodTables; DefHighLightChange(nil); end;