in the delphi rules configuration, text between { and } is set to be marked as "unimportant".
i can see why this was done because { } is USUALLY used for marking comments in delphi.
HOWEVER, { } is also used very frequently also to indicate conditional compilation lines, in the same way that #ifdef is used in c/c++.
i'd like to suggest that this makes it probably a bad idea to mark such differences in {} as unimportant.
if you wanted to get clever you could mark differences in {} as unimportant UNLESS the first character after the { is a $, since that's what signifies a directive, for example:
{$IFDEF DELPHI_6_UP} using RTLConsts {$ENDIF}
i can see why this was done because { } is USUALLY used for marking comments in delphi.
HOWEVER, { } is also used very frequently also to indicate conditional compilation lines, in the same way that #ifdef is used in c/c++.
i'd like to suggest that this makes it probably a bad idea to mark such differences in {} as unimportant.
if you wanted to get clever you could mark differences in {} as unimportant UNLESS the first character after the { is a $, since that's what signifies a directive, for example:
{$IFDEF DELPHI_6_UP} using RTLConsts {$ENDIF}
Comment