[fpc-pascal] Nested comments.
Adriaan van Os
adriaan at adriaan.biz
Sun Jan 21 17:27:15 CET 2024
Guillermo Martínez Jiménez via fpc-pascal wrote:
> Hi Pascaloids,
>
> I'm wondering if it is possible to make FPC detect and warn (or even
> stop compillation when) it has detect a nested comment. That's because
> I'm using Vim and it closes odd comments. For example, the nex code:
>
> { This comment isn't closed. *)
> DoSomething ();
> { This is a nested comment. }
>
> I know this is a silly mistake, but sometimes I comment batchs of codde
> to deactivate them temporary and when un-comment they're non paired and
> it result in weird runtime bugs.
>
> A command line option that activate that functionality would be great.
> Something like -wn (because -vn is used for notes).
($modeswitch nestedcomments-}
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list