Skip to content

Multiline comments are not highlighted correctly #23176

Closed as duplicate
Closed as duplicate
@drsybren

Description

@drsybren

Description

Multi-line comments are not highlighted correctly in diff views.

Actual behaviour

Example: commit aa72e3abf9644de3c0478692d7bb357d1c7297e2 in Blender

image

Another example in Go, to show that it's not limited to C/C++: https://try.gitea.io/drSybren/skyfill/commit/aa87c1c50db6dfd97ab53905097e43fce3c5568e

Expected behaviour

Expected would be to see the highlighting like done when viewing the file regularly (of course with red/green background for the added/removed lines in the diff):

image

Gitea Version

1.19.0+dev-649-g2093ca517

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Self-built from Git

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions