Bug 435086

Summary: LaTeX: 'cases' inside math environment syntaxing bug
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: electro707 <develop>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: christoph, nibgonz, walter.von.entferndt
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.81.0
Sentry Crash Report:
Attachments: Screenshot of the issue

Description electro707 2021-03-28 22:50:13 UTC
Created attachment 137143 [details]
Screenshot of the issue

If a 'cases' environment is inside a math environment, for example inside a 'gather' environment, after the 'cases' environment the math syntaxing/highlighting will stop for the test of the math environment

To reproduce, this is an example for it:
```
\begin{gather*}
    a = 5 \\
    y = \begin{cases}
      0 & x < 2 \\
      2x-4 & x > 2 \\
    \end{cases} \\
    x = 5 \\
    z = 5
  \end{gather*}
```
Where `x &= 5 \\` and `z &= 5` won't have the math syntaxing/highlighting applied to them even tough they should. I have attached a screenshot of it for demonstation

SOFTWARE/OS VERSIONS:
Operating System: Arch Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.8-arch1-1
OS Type: 64-bit
Graphics Platform: X11
Comment 1 Bug Janitor Service 2021-04-02 03:34:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/189
Comment 2 electro707 2021-04-03 07:16:38 UTC
Yup MR#189 of the syntaxing framework fixed this bug, and I can confirm it as fixed.
Comment 3 Nibaldo G. 2021-04-03 21:10:03 UTC
Fixed in KDE Frameworks 5.81, available in Sat April 10, 2021.