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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to