[fpc-pascal] "Unexpected end of file" when having an open comment after the final "end."

Sven Barth pascaldragon at googlemail.com
Thu Feb 8 23:42:18 CET 2024


Martin Wynne via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Do., 8. Feb. 2024, 22:03:

> Hi Thomas,
>
> The error is not the file content after "end.".
>
> The error is not having the expected "end;" after "begin".
>
> This works ok:
>
> _________________________
>
> program test;
>
> begin
> end;
>
> end.
>
> abc 123
>

If that works then that is a bug as well, because the begin of the main
*must* be terminated with a "end.", not a "end;".

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20240208/fda90ffc/attachment.htm>


More information about the fpc-pascal mailing list