[Pas2js] Multiline string and INCLUDESTRING directive

Michael Van Canneyt michael at freepascal.org
Wed Dec 9 10:14:16 CET 2020



On Wed, 9 Dec 2020, heliosroots wrote:

> Very good, when will it be available on the trunk?

Sorry, I hadn't noticed the compiler filters out allowed switches...

I enabled it:

home:~/pas2js> pas2js -Tnodejs -Jirtl.js -Jc a.pp -l
Pas2JS Compiler version 2.1.1 [2020/12/09] for Linux x86_64
Copyright (c) 2019 Free Pascal team.
Info: 1157 lines in 2 files compiled, 0.0 secs
home:~/pas2js> nodejs a.js
1
2
3
4
home:~/pas2js> cat a.pp
{$modeswitch multilinestrings}

Const
   a = `1
2
3
4`;

begin
   writeln(a);
end.

Michael.


More information about the Pas2js mailing list