Why don't you allow identation *before* the dot for generated code lines? Or alternatively allow any number of dots?
So this:
.foo = bar;
if(a == 0)
.++foo;
if(b == 0)
.if (foo == 3)
. bar = 0;
if(c == 0)
.++bar;
end
.foo = 0;
end
end
could become this:
.foo = bar;
if(a == 0)
.++foo;
if(b == 0)
.if (foo == 3)
. bar = 0;
if(c == 0)
.++bar;
end
.foo = 0;
end
end
or this:
.foo = bar;
if(a == 0)
.....++foo;
if(b == 0)
.........if (foo == 3)
......... bar = 0;
if(c == 0)
.............++bar;
end
.........foo = 0;
end
end