Improved compatibility with LaTeX math mode

Bracket highlighting should now work in all LaTeX math environments. Previously, it was not working with simple TeX style math delimited by $...$ or $$...$$.
Added restriction to TeX/LaTeX for the brackets in math mode
Merge pull request #104 from kragol/BH2ST3

Improved compatibility with LaTeX math mode