Skip to content

typst wrong syntax highlighting #1237

@l0uisgrange

Description

@l0uisgrange

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hey there 👋, thanks @alecthomas for this package!
The syntax highlighting for the typst language is not correct: the grammar needs to be updated. Here's a comparison with the current GitHub highlighting to demonstrate the issue visually.

Chroma GitHub
Image Image

I've not found the correct grammar as xml, but found this in json and also this one from Shiki.js if that helps.

To Reproduce

Here is the reproduction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions