Bug 373286 - [PATCH] syntax highlighting wrong for latex with alignat
Summary: [PATCH] syntax highlighting wrong for latex with alignat
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 12:06 UTC by Jan
Modified: 2017-07-23 09:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: KDE Frameworks 5.31
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2016-12-05 12:06:37 UTC
In the snippet from a .tex file,

\begin{alignat*}{2}
3
\end{alignat*}
Zjavne $x(1+x) > x^2$.

syntax highlighting for latex breaks at the end of alignat* and is wrong for the rest of the document.
Comment 1 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 344562
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