https://bugs.kde.org/show_bug.cgi?id=428947
Bug ID: 428947
Summary: Wrong LaTeX highlighting for bmatrix
Product: frameworks-syntax-highlighting
Version: 5.75.0
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: syntax
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 133213
--> https://bugs.kde.org/attachment.cgi?id=133213&action=edit
error result
SUMMARY
The `bmatrix` environment is treated like an error in line 804 in
`data/syntax/latex.xml` at commit 9ca2992a.
https://github.com/KDE/syntax-highlighting/blob/9ca2992afcaf9cafe57ef21459bdfaf78125fc22/data/syntax/latex.xml#L804
STEPS TO REPRODUCE
1. Save this file in `test.md`.
```tex
\begin{equation}
\begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}
\end{equation}
```
2. Compile this with `pandoc test.md -o test.pdf`. (I used pandoc 2.11.)
3. Open `test.pdf` and observe the color difference in `bmatrix`.
OBSERVED RESULT
They have different colors.
EXPECTED RESULT
They have the same color.
SOFTWARE/OS VERSIONS
Ubuntu 20.04, pandoc 2.11, TexLive 2020
ADDITIONAL INFORMATION
https://github.com/jgm/skylighting/issues/111
--
You are receiving this mail because:
You are watching all bug changes.