sc ide: sc editor - improve automatic indentation

Align a line with the highest line above where *any* bracket is matched,
as opposed to the *first* bracket being matched.

This fixes the following case:

if(a, {
   b
},{
   c
})