| Summary: | Kile is using red to highlight mathematics outside equations when matrices without columns are used in align environment. | ||
|---|---|---|---|
| Product: | [Applications] kile | Reporter: | Jay Treiman <jay.treiman> |
| Component: | editor | Assignee: | Michel Ludwig <michel.ludwig> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | NOR | ||
| Version First Reported In: | 2.9.93 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/syntax-highlighting/-/commit/0b56d19238ccf20667693c468bdc0b3078b01392 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
File with red text that does not belong.
A file where I get red text outside equations. |
||
Created attachment 161179 [details]
A file where I get red text outside equations.
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 |
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.