Comment levels causes compile problems (two comments starters and one close)
Original Reporter info from Mantis: headsman
-
Reporter name: Alexandre Leclerc
Original Reporter info from Mantis: headsman
- Reporter name: Alexandre Leclerc
Description:
If we have two comments starter and one to close, there are compilors warning 'Comment level 2 found' and a Fatal 'Unexpected end of file'.
Example:
if True then
begin
{
if True then
Inc(i);
{}
end;
The { .. {} structure is often used to comment out certain parts of code when developping... But it is not compiling properly. It does work in Delphi.
Mantis conversion info:
- Mantis ID: 1047
- Platform: All
- Version: 0.9.6