-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting incorrect in Diff for PascalObject #33354
Comments
The reason is this: #19684 (comment) and #21970
|
Hmm, it is a upstream bug: alecthomas/chroma#1042 |
Yup, I was gonna reply that comments in Pascal and ObjectPascal are the same, // |
Opened #33358 for discussing a general fix. |
Yeah, that's why i left this open. A general solution with the full-file syntax highlight would also fix this issue assuming the file has more than one line and a trailing newline. |
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 :
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 :
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
The text was updated successfully, but these errors were encountered: