Free Pascal supports the use of nested comments. The following constructs are valid comments:
The following are valid ways of nesting comments:
The last two comments must be on one line. The following two will give errors:
and
The compiler will react with a ’invalid character’ error when it encounters such constructs, regardless of the -Mturbo switch.
Remark: In TP and Delphi mode, nested comments are not allowed, for maximum compatibility with existing code for those compilers.