tree-sitter-typst
tree-sitter-typst copied to clipboard
Tree Sitter grammar for Typst
In Helix editor, when writing any file format that support embedded languages like raw blocks in markdown or typst: ```md ```typst _ - ``` ``` It causes a segfault when...
# Simple grammar = maintainable grammar This grammar has to be maintainable. To be maintainable, the grammar has to be simple. One way to keep things simple is to do...
This doesn't add Python syntax highlighting: ````typ ```py print() ``` ```` But this does: ````typ ```python print() ``` ```` While both work fine with [Markdown tree-sitter](https://github.com/tree-sitter-grammars/tree-sitter-markdown). Checked on Neovim and...
In raw blocks in Typst and other markup languages like Markdown, the `typc` and `typm` syntax indications, correspond to Typst's code and Typst's math. Currently, the Tree-Sitter syntax only recognizes...
What are all the changes introduced by 0.12? - import notation ```typ #import "foo.typ": bar.boo #import "foot.typ": (bar, boo) ``` - anything more?