[fpc-pascal] Nested comments.

Guillermo Martínez Jiménez gmartinez at burdjia.com
Sun Jan 21 13:21:09 CET 2024


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).

What do you thing?

Guillermo "Ñuño" Martínez.
Piopio Juegos.


More information about the fpc-pascal mailing list