cspell-dicts
cspell-dicts copied to clipboard
Support Typst
In Typst you have arbitrarily nested code and content blocks. A code block is introduced by #{...}, but there are also some shortcuts like #func(...) or #var or #show: ... (known as show-rules). Notice that special characters like # can be escaped as in \#. Comments are C-style, both // and /* ... */. There are also TeX-style math environments $inline$ and $ display $. Since the top-level is content, it's probably convenient to match code, comments and equations and treat everything else as the body.
Dupe of #3432?