Syntax highlighting is in math mode after \end{equation} when using resizebox in equation. STEPS TO REPRODUCE 1. Enter the following lines somewhere in a LaTeX file \begin{equation} \resizebox{\hsize}{!}{ $\begin{pmatrix} 3 \end{pmatrix}$}~. \end{equation} Hello 2. The editor highlighting is that of math mode after this, i.e. "Hello" is highlighted as math. SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.20.1 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1
There have been many changes since 2020, and the behavior is no longer the same as originally indicated. "Hello" is displayed correctly in "Normal Text", but the 2 "$" are displayed in "Error". It remains to be seen whether this causes another problem.
Created attachment 181956 [details] rendered with ksyntaxhighlighter 5.245.0