Hi there! Just dropping in to say I’ve developed an initial GtkSourceView language definition for a native Typst editor I’m developing called Typesetter. The language definition is currently specialized for my own app, but as it develops I’d certainly be interested in making it more generic and upstreaming it into GtkSourceView itself so it would work in other apps like Gnome Text.
I can’t emphasize enough that this is a preliminary version of the language definition! Typst syntax is quite complicated to parse with regular expressions what with how it switches between markup, code, and math modes, so I’m sure there are bugs and edge cases that I haven’t considered! If you know of a test suite of documents I can use to make sure all types of syntax are supported and render correctly, please let me know!
Anyway, if you want to try it out, the easiest way would be to clone the repository and compile the app in Gnome Builder. Feedback, suggestions, bug reports, etc. are more than welcome!