go-gitea/gitea

Diff view in Commits and Pull Requests of C++ Code does not render docstrings correctly

Closed this issue · 5 comments

Description

Docstrings are not rendered correctly as comments but tried to be rendered as c++ code, which makes readability and reviewing more difficult.

Screenshots

Image

Gitea Version

1.23.7

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Windows

Browser Version

Microsoft Edge

On Github C++ Docstrings get rendered like comments

Image

Does it work in https://swapoff.org/chroma/playground/? If not, report it to https://github.com/alecthomas/chroma, otherwise it's our bug.

It has been fixed in 1.24

-> Full-file syntax highlighting for diff pages #33766

Ah yes, please upgrade.