In latex I need to type the sequence$G^{\{ x \}}$ to get the desired equation. The equation works fine, but after this spell check does not work for the remaining text. Spell check works fine before the occurrence of this word and works find if I delete such occurrence. If the same sequence occurs outside maths mode i.e not inside $ $, then there is no problem.
I get issues with syntax highlighting also after the occurrence of that sequence. What is the issue here.

:set ft=tex. – canaaerus Sep 19 '12 at 6:26$G^{(x )}$ it works, so the problem is very particular about this sequence particularly\}` and\{. – DurgaDatta Sep 19 '12 at 11:03%stopzoneafter that sequence. – Aditya Dec 5 '12 at 1:09\(and\)instead of$help (see vonbrand’s answer)? – Qrrbrbirlbel Mar 5 at 4:16