https://bugs.kde.org/show_bug.cgi?id=413493
--- Comment #2 from pbs3...@googlemail.com --- Please feel free to ignore the previous two comments I accidentally created, *THIS* is the actual bug report. SUMMARY The LaTeX highlighter ignores \end{equation} in certain corner cases, making it highlight the rest of the document in maths mode. STEPS TO REPRODUCE Load this into kate and pick LaTeX as the language: % Good \begin{equation}2 \end{equation} % Bad \begin{equation}2\end{equation} OBSERVED RESULT The second line has \end in blue and {equation} in orange. EXPECTED RESULT Both lines should be highlighted the same. -- You are receiving this mail because: You are watching all bug changes.