The following code, when pasted into the Kile editor (via Katepart), highlights the second "cases" wrong: \begin{align} U_{bg}(z) = \begin{cases} U_{max} e^{-(b(z-z_0))^4} &\mbox {if } z \leq z_0,\\ U_{max} &\mbox {if } z > z_0,\\ \end{cases} \end{align} Reproducible: Always Steps to Reproduce: 1. Paste above code into Kate, 2. select Tools->Highlighting->Markup->Latex 3. Actual Results: The second "cases" is green Expected Results: The second "cases" should be blue
Created attachment 81484 [details] A patch to fix the broken syntax highlighting
Git commit 4afa72930126f7241aa7eb54307f80db1509d4e7 by Dominik Haumann. Committed on 01/08/2013 at 08:17. Pushed by dhaumann into branch 'master'. fix cases environment highlighting Thanks to Michael for the patch! FIXED-IN: 4.11.1 M +10 -1 examples/syntax/highlight.tex M +3 -3 part/syntax/data/latex.xml http://commits.kde.org/kate/4afa72930126f7241aa7eb54307f80db1509d4e7
Git commit 76ef0c074b7dd85dfe5e7bb45e9f0ba3cf999efc by Dominik Haumann. Committed on 01/08/2013 at 08:17. Pushed by dhaumann into branch 'KDE/4.11'. fix cases environment highlighting Thanks to Michael for the patch! FIXED-IN: 4.11.1 M +10 -1 examples/syntax/highlight.tex M +3 -3 part/syntax/data/latex.xml http://commits.kde.org/kate/76ef0c074b7dd85dfe5e7bb45e9f0ba3cf999efc