> On 10 Nov 2017, at 16:11, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com > wrote:
>
> There are other possibilities: if we don't want to change the methodBody at all, then let's change the opening/closing sequence
>
> - at write, choose a closing sequence that has no exact match in source code, then use the inverse sequence as the opening sequence
> - at read, just scan for the inverse of opening sequence
>
> opening sequence could be any combination of [{<(
> or maybe just a single [ repeated as many times as necessary
That is a cool idea (used by some scripting languages, stdin handling, IIRC).
Check for conflicts of 1 $] closing sequence for $[ and keep on increasing the count until there is no conflict. Simple & effective. Supports any syntax.
BTW, I held off from commenting about the basic Tonel principle of a single file, but if 'we want to allow people to edit this file manually' becomes a goal, then I would be VERY VERY disappointed.
Sven