Skip to content

Syntax highlighting incorrect in Diff for PascalObject #33354

Closed
@NeeeeB

Description

@NeeeeB

Description

There is a problem with colors and syntax highlighting in diff for PascalObject language (maybe other too, didn't try).
This is what the diff looks like :

Image
As you can see, the 2 lines of comments (beginning with //) are not treated as comments.

The problem is not present in the code explorer where comments are properly detected :

Image

Gitea Version

1.23.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

package manager (Arch) so systemD

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugtype/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions