in reply to Re: Syntax errors with {s
in thread Syntax errors with {s

That's precisely what I do except I extend that idea to include all paired characters.

I very rarely get any syntax errors using this method.

It is also independent of the programmer's choice of code layout.