Skip to content

Utilize tree-sitter for embedded code blocks #967

@nareha

Description

@nareha

Description

Typst's syntax highlighting could be improved via tree-sitter. As an example, here is some Haskell code compiled by Typst

image

versus code using tree-sitter syntax highlighting in Neovim.

image

tree-sitter is also used by other projects, such as Github's markdown code block rendering.

Use Case

It allows for more expressive syntax highlighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions