Fix detection of nested math modes for LaTeX syntax highlighting.
Fix detection of nested math modes for LaTeX syntax highlighting.

Patch by Thomas Braun.

BUG: 223151

svn path=/trunk/KDE/kdelibs/kate/; revision=1169900

hlamer/kate,sandsmark/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,hlamer/kate,cmacq2/kate,jfmcarreira/kate,sandsmark/kate,DickJ/kate,DickJ/kate,hlamer/kate,hlamer/kate,hlamer/kate,DickJ/kate,cmacq2/kate,hlamer/kate,sandsmark/kate,jfmcarreira/kate,hlamer/kate,sandsmark/kate,cmacq2/kate