Bug 473753 - Kile is using red to highlight mathematics outside equations when matrices without columns are used in align environment.
Summary: Kile is using red to highlight mathematics outside equations when matrices wi...
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: editor (show other bugs)
Version: 2.9.93
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-25 16:38 UTC by Jay Treiman
Modified: 2023-09-17 22:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
File with red text that does not belong. (1.01 KB, text/x-tex)
2023-08-25 16:38 UTC, Jay Treiman
Details
A file where I get red text outside equations. (1.01 KB, text/x-tex)
2023-08-25 16:39 UTC, Jay Treiman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Treiman 2023-08-25 16:38:21 UTC
Created attachment 161178 [details]
File with red text that does not belong.

SUMMARY

In the editor when using \begin{matrix} \end{matrix} in an align environment without columns, e.g. \begin{matrix}2\\3\\3\end{matrix}, the highlighting of red after the equation is closed continues.  If the matrix has multiple columns,  e.g. \begin{matrix}2&3&3\\1&0&1\end{matrix}, the highlighting stops at the end of the equation.


STEPS TO REPRODUCE
1.   Saw this in a book I am working on.
2.   Started a new latex document and put matrices with only one column in an equation and an align environment.  In both cases the \end{matrix} was not properly highlighted.  After the \end{align} the red highlighting continued.
3. I changed the matrix to one with columns, and the highlighting returned to correct highlighting.

OBSERVED RESULT

Improper red highlighting.

EXPECTED RESULT

Standard black text outside of equations.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE 15.5
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION

I have attached one file. The file Test20230825A.tex has the red text that should not be there when I use Kile.
Comment 1 Jay Treiman 2023-08-25 16:39:42 UTC
Created attachment 161179 [details]
A file where I get red text outside equations.
Comment 2 Christoph Cullmann 2023-09-17 22:10:55 UTC
Git commit 0b56d19238ccf20667693c468bdc0b3078b01392 by Christoph Cullmann, on behalf of Jonathan Poelen.
Committed on 18/09/2023 at 00:08.
Pushed by cullmann into branch 'master'.

LaTeX: fix \end with some context

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

https://invent.kde.org/frameworks/syntax-highlighting/-/commit/0b56d19238ccf20667693c468bdc0b3078b01392