[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.

Ben Grasset operator97 at gmail.com
Thu Jul 4 06:07:54 CEST 2019


Ok, I actually got this working fairly easily (though I'm sure it's not
perfect.)

Here's what it looks like in Lazarus, with a patched SynEdit.
<https://i.imgur.com/w1veLwg.png> Note how you can even "fold" it!

The program pictured compiles, and runs the way you'd expect it to.
Assembler output for the string literal looks like this:

_$TEST$_Ld2:
.ascii "QHelp:\015\012  -h:\015\012    Show this help.\015\012"
.ascii "  -i:\015\012    Print the letter i for no reason.\015"
.ascii "\012\000"

Will make a proper Github fork branch for it sometime soon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190704/85542ebe/attachment.html>


More information about the fpc-devel mailing list