On Mon, Jan 17, 2022 at 3:22 PM John Sturdy <jcg.sturdy@gmail.com> wrote:
But it might be handled better in the display in editors and IDEs (perhaps syntax coloring brackets by their depth).

VSCode already supports this out of the box. Just search "bracket pair" in the settings and check (tick) the box for Bracket Pair Colorization. Attached is an example of what it looks like with four levels of nesting by default (using one of my old personal projects for the sake of example).