You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that languages such as Swift, Typescript, Nim and others are not supported by the syntax highlighter.
Even async/await keywords are not highlighted in Rust code.
Upon some investigation, I discovered that syntect uses a compressed version of a set of Sublime Text language support definitions.
The problem is that those definitions haven’t been updated (on syntect’s side) in a long time, as stated here. This makes me think that updating those definitions (and having Typst highlight more languages), will require an update to the syntect crate.
If we want to support more languages, how should we proceed?
The text was updated successfully, but these errors were encountered:
I'm not sure how computationally burdensome using something like tree-sitter would be (https://crates.io/crates/tree-sitter) — it feels a bit overkill, but it seems like The Way Forward™ when it comes to language syntax support.
I see that languages such as Swift, Typescript, Nim and others are not supported by the syntax highlighter.
Even
async
/await
keywords are not highlighted in Rust code.Upon some investigation, I discovered that
syntect
uses a compressed version of a set of Sublime Text language support definitions.The problem is that those definitions haven’t been updated (on syntect’s side) in a long time, as stated here. This makes me think that updating those definitions (and having Typst highlight more languages), will require an update to the
syntect
crate.If we want to support more languages, how should we proceed?
The text was updated successfully, but these errors were encountered: