Page 1 of 1

[possible bug] default sequence markup for ink

Posted: Fri Aug 13, 2021 8:32 am
by nehvaleem
I've noticed that such sequencer command

Code: Select all

{Sequence("{{default}}; SetTimeout(5);")}
isn't possible while using ink - it will complain about the curly braces and won't compile.

Re: [possible bug] default sequence markup for ink

Posted: Fri Aug 13, 2021 8:43 am
by Tony Li
Looks like Ink's parser can't handle that case, even though the curly braces are inside a string.

What if I add a special case for the Ink integration that treats square braces as curly braces? Then you could use:

Code: Select all

{Sequence("[[default]]; SetTimeout(5);")}

Re: [possible bug] default sequence markup for ink

Posted: Fri Aug 13, 2021 8:47 am
by nehvaleem
yeah, that should help. Ink is pretty restrictive when it comes to curly braces :)

Re: [possible bug] default sequence markup for ink

Posted: Fri Aug 13, 2021 9:16 am
by Tony Li
Here's the updated integration. In {Sequence("xxx")}, all '[[' will be replaced by '{{', and all ']]' by '}}' in xxx.

DS_InkSupport_2021-08-13.unitypackage

Re: [possible bug] default sequence markup for ink

Posted: Fri Aug 13, 2021 11:27 am
by nehvaleem
thanks! Much appreciated!

Re: [possible bug] default sequence markup for ink

Posted: Fri Aug 13, 2021 11:29 am
by Tony Li
Glad to help!