An efficient way of decorating all parenthesis in a line

Thanks!

Then I should probably apply mark-decoration (wrap into a span with a specific class with a defined y-scale).

I tried couple of techniques, and it looks like I anyway have to query the parents height using JS. As a compromise one could do it periodically for groups of matched parens once per n transactions or milliseconds after users input…