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.