Typst currently uses the sublime-text format for importing grammars of formal languages. Since WASM plugins are already supported by Typst, would it be possible to write a plugin allowing the user to import Tree-sitter grammars compiled to WASM and, say, use them for syntax highlighting in code listings/raw text? Has anyone ever attempted something similar? How difficult would this be?
Possibly related: how Zed tackled this: Extensible Language Support in Zed - Part 1
Hey @Foxy, welcome to the forum! I’ve changed your question post’s title to better fit our guidelines: How to post in the Questions category
For future posts, make sure your title is a question you’d ask to a friend about Typst.
1 Like