might experiment with using textstyler for bracket matching