tooltips for unexpected and unbalanced brackets