Bad (* *) comments parsing
Original Reporter info from Mantis: SIV
-
Reporter name: Igor Sudarikov
Original Reporter info from Mantis: SIV
- Reporter name: Igor Sudarikov
Description:
This code can not be compiled:
begin
(* ()* *)
end.
The compiler reports:
aaa.pas(2,16) Warning: Comment level 2 found
aaa.pas(3,4) Fatal: Unexpected end of file
Number of closing brackets inside the comment may be different, but opening bracket is essential for some reason. The following comments also cause error:
(* ()))))))))))))))* )
( a := func()*1.0 *)
Mantis conversion info:
- Mantis ID: 15293
- OS: Linux
- Platform: i386
- Version: 2.2.4
- Fixed in version: 2.4.2
- Fixed in revision: 15175 (#75b5b6c7)
- Monitored by: » Vincent (Vincent Snijders)