Bug 344562

Summary: Bug in Highlighting when use \begin{alignat} tag
Product: [Applications] kate Reporter: Pablo <elfio>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: elfio, ilmari.lauhakangas
Priority: NOR    
Version: 16.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: KDE Frameworks 5.31
Sentry Crash Report:
Attachments: Example of the bug

Description Pablo 2015-02-25 17:45:24 UTC
Created attachment 91293 [details]
Example of the bug

[code]
\begin{alignat}{2}
A  &= B &= C \\
A  &= B &= C
\end{alignat}
My text...
[/code]

When I use this, the following text it's shown like it would be inside the tags. 
I've attached a screenshot of the bug.
Comment 1 Buovjaga 2016-06-25 12:51:21 UTC
Confirmed with LaTeX highlighting (the last alignat has "at" in a different color).

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 2 Dominik Haumann 2017-02-05 13:31:30 UTC
Git commit 540fb97a8764e35b88a74978ce3a9ae69feea61c by Dominik Haumann.
Committed on 05/02/2017 at 13:28.
Pushed by dhaumann into branch 'master'.

LaTeX highlighting: fix alignat environment
Related: bug 373286
Differential Revision: D4294

M  +8    -0    autotests/folding/highlight.tex.fold
M  +8    -0    autotests/html/highlight.tex.html
M  +9    -1    autotests/input/highlight.tex
M  +8    -0    autotests/reference/highlight.tex.ref
M  +2    -2    data/syntax/latex.xml

https://commits.kde.org/syntax-highlighting/540fb97a8764e35b88a74978ce3a9ae69feea61c