[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
Sat Jul 6 16:34:24 CEST 2019
On Sat, Jul 6, 2019 at 10:25 AM Florian Klämpfl <florian at freepascal.org>
wrote:
> I tried to follow the thread, but one think I miss is: what are the rules
> for indention? Does the lines string contain
> spaces at the beginning of every line or not? Are they removed? How many
> are removed? What about tabs? Actually, this is
> my main concern with such multiline strings: spaces/tabs at the beginning
> of a line cannot be handled in an intuitive way.
>
No spaces or tabs are implicitly inserted or removed by the compiler at any
time. Line endings are handled via the directive syntax suggested by
Michael.
If you wish to test the feature yourself, Florian, currently I have the
branch available here. <https://github.com/Akira13641/freepascal>
Note that it *does* now also include the requested {$modeswitch
MultiLineStrings}, which must be set (in all language modes) in order to
use multi-line strings anywhere.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190706/de39b0a9/attachment.html>
More information about the fpc-devel
mailing list