You can do something like this:

USING: multiline ;
SYNTAX: [[ "]]" parse-multiline-string suffix! ;
SYNTAX: [=[ "]=]" parse-multiline-string suffix! ;
SYNTAX: [==[ "]==]" parse-multiline-string suffix! ;

[[ asdf]] [=[ asdf]=] [==[ asdf]==]

Lua-style or magic strings can contain any payload. You can't nest triple
quotes inside a triple quote string.

The downside right now is that lua-style strings are not directly supported
by the parser and need a space before the payload.

Cheers,
Doug

On Mon, May 15, 2017 at 8:13 AM Alexander Ilin <ajs...@yandex.ru> wrote:

> Hello!
>
>   Did we ditch the """ string syntax at some point? I was using it for
> something, and now it no longer woks:
>
> : xml-file-prefix ( ItemCount -- string )
>   """<Session><Hostname Remote="0" RemoteHost="\\\\HOST-00012-2"><Server
> Name="SaabTankRadar.TankServer.1" Connected="1" GroupCount="1"><Group
> Name="Group_56ce178_1" Active="-1" ReqUpdateRate="1000" TimeBias="0"
> PercentDeadband="0.00" Connected="2" ItemCount="%d">""" sprintf ;
>
>   Do I have to escape all the quotes now, or is there a better way?
>
>   Could someone tell me the commit number so that I could revert it for my
> repo? I tried searching for """ on github, but it doesn't support that kind
> of search query.
>
> ---=====---
>  Александр
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to