Skip to content

Syntax Highlighting breaks for blame view when some line of a chain call is commented #6895

Closed
@eldiaboloz

Description

@eldiaboloz
  • Gitea version (or commit ref): 1.9.0+dev-217-g91c2c237f
  • Git version: 2.21.0
  • Operating system: Arch Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hello,
as per title: In blame view, if you comment some line after the first line of a chain, the syntax highlighting is broken to the end of file. Tried with php and java files.
here are examples:
https://try.gitea.io/TbHG1AUy7x7vkj10/test-blame-bug/blame/branch/master/HelloWorld.java
https://try.gitea.io/TbHG1AUy7x7vkj10/test-blame-bug/blame/branch/master/index.php

Screenshots

https://i.imgur.com/XcvSXpS.png
https://i.imgur.com/ISWfM76.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UI

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions