Something is broken in recent versions of Leo and it’s unable to produce proper code for most languages because anytime it writes [1] or [5] or any other number inside square brackets, it’s completely eaten up before its shown to me. It makes it near impossible to ask Leo to produce code without having to do extensive work trying to fix it up. I’ve started telling Leo to say SQUARE1SQUARE instead of [1] and so on and then I’m mass replacing that manually in my editor with [1] just to work around this, but sometimes it forgets and still lets a [1] slip through which gets eaten.
Here’s an example where [0] is obviously missing:
