[fpc-pascal] Feature "Multiline strings" added

Hairy Pixels genericptr at gmail.com
Mon Jul 28 17:27:51 CEST 2025


 On Jul 28, 2025 at 9:12:53 AM, Michael Van Canneyt <michael at freepascal.org>
wrote:

> Because the amount of whitespace to remove at the start of every line
> is determined by the amount of spaces before the closing triple quotes.
>
> Ergo, you can only strip the whitespaces at the start of every line
> after the whole string was parsed and you have determined the
> number of whitespace characters to remove from every line...
> -> 2 passes.
>

oh I re-read the first email and see its implemented differently.

I’ve been using multi lines strings in Swift for my day job for a few years
now and got used to the “”” style which include indentation too and I’ve
had no complaints. Since whitespace is important to multiline strings
having the compiler enforce indentation rules makes sense to me.

Personally I’ll be using the ‘’’ variant so I don’t need to change syntax
definitions in Sublime Text + VSCode and how many others that I may come
across.

Regards,
    Ryan Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20250728/64eaad31/attachment.htm>


More information about the fpc-pascal mailing list