Re: [fpc-pascal] Nested comments.

2024-01-22 Thread Guillermo Martínez Jiménez via fpc-pascal
El Sun, 21 Jan 2024 17:27:15 +0100 Adriaan van Os via fpc-pascal escribió: > > ($modeswitch nestedcomments-} > I didn't know about this switch. Thanks, maybe I can use it. Guillermo Martínez J. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

Re: [fpc-pascal] Nested comments.

2024-01-22 Thread Guillermo Martínez Jiménez via fpc-pascal
El Sun, 21 Jan 2024 17:12:05 +0100 Tomas Hajny via fpc-pascal escribió: > Well, I guess that you use mode Delphi, because warning about nested > comments and even an error in your case (due to nested comment not > closed) is already issued by default. So the very simple solution is > using e.g

Re: [fpc-pascal] Nested comments.

2024-01-21 Thread Adriaan van Os via fpc-pascal
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

Re: [fpc-pascal] Nested comments.

2024-01-21 Thread Tomas Hajny via fpc-pascal
On 2024-01-21 13:21, Guillermo Martínez Jiménez via fpc-pascal wrote: Hi, 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 c

[fpc-pascal] Nested comments.

2024-01-21 Thread Guillermo Martínez Jiménez via fpc-pascal
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 co

Re: [fpc-pascal] Nested comments

2013-09-23 Thread Sven Barth
Am 23.09.2013 14:28, schrieb Juha Manninen: On Mon, Sep 23, 2013 at 3:06 PM, Michael Van Canneyt wrote: Use Delphi mode or TP mode. Thanks, it helped. Actually there already was {$MODE Delphi} in an include file. Apparently it does not work, it must be in every pascal unit. The include needs t

Re: [fpc-pascal] Nested comments

2013-09-23 Thread Juha Manninen
On Mon, Sep 23, 2013 at 3:06 PM, Michael Van Canneyt wrote: > Use Delphi mode or TP mode. Thanks, it helped. Actually there already was {$MODE Delphi} in an include file. Apparently it does not work, it must be in every pascal unit. This PDF package still does not compile with Lazarus. I will se

Re: [fpc-pascal] Nested comments

2013-09-23 Thread Michael Van Canneyt
On Mon, 23 Sep 2013, Michael Van Canneyt wrote: On Mon, 23 Sep 2013, Juha Manninen wrote: I realized FPC supports nested {} comments by default. SynPdf, a Synopse PDF engine http://synopse.info/fossil/wiki?name=PDF+Engine has '{' characters inside comments but they are not meant as nested

Re: [fpc-pascal] Nested comments

2013-09-23 Thread Michael Van Canneyt
On Mon, 23 Sep 2013, Juha Manninen wrote: I realized FPC supports nested {} comments by default. SynPdf, a Synopse PDF engine http://synopse.info/fossil/wiki?name=PDF+Engine has '{' characters inside comments but they are not meant as nested comments. How to turn nested comments off? I did n

[fpc-pascal] Nested comments

2013-09-23 Thread Juha Manninen
I realized FPC supports nested {} comments by default. SynPdf, a Synopse PDF engine http://synopse.info/fossil/wiki?name=PDF+Engine has '{' characters inside comments but they are not meant as nested comments. How to turn nested comments off? I did not find any such option even by using the new