Skip to content

Syntax highlighting issue with multiline yaml strings #12532

Description

@silverwind

https://try.gitea.io/silverwind/symlink-test/src/branch/master/multiline.yaml

Gitea:

image

Chroma Playground:

image

Chroma's highlighting is not ideal for the subsequent lines in the multiline string and the double-character multiline specifiers but I'd expect our rendering to match the Chroma playground but it seems to go haywire starting at the first "|".

cc: @mrsdizzie

Related Chroma Issue: alecthomas/chroma#391

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions