Bug 435086 - LaTeX: 'cases' inside math environment syntaxing bug
Summary: LaTeX: 'cases' inside math environment syntaxing bug
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-28 22:50 UTC by electro707
Modified: 2021-04-03 21:10 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.81.0
Sentry Crash Report:


Attachments
Screenshot of the issue (39.07 KB, image/png)
2021-03-28 22:50 UTC, electro707
Details

Note You need to log in before you can comment on or make changes to this bug.
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.