orbitalquark / scintillua

Scintillua enables Scintilla lexers to be written in Lua, particularly using LPeg. It can also be used as a standalone Lua library for syntax highlighting support.
https://orbitalquark.github.io/scintillua
MIT License
51 stars 20 forks source link

Add Typst lexer #109

Open Disonantemus opened 6 months ago

Disonantemus commented 6 months ago

Typst lexer, better than nothing. I don't know what I'm doing too much, just copy paste from other lexers. But at least now I can differentiate between: content, typst functions and comments. Maybe someone that know more can start from here or get motivated to do a better lexer.

orbitalquark commented 6 months ago

Thanks for sharing! Perhaps a link to a resource would be helpful for anyone trying to complete this.

Disonantemus commented 5 months ago

I did this for vis, but they send me here.

Typst is a typesetting system, like LaTeX, but 200x smaller, has meaningful errors, is fast, markup similar to markdown, very active community, is supported by PanDoc and Github; in Rust. Source. Documentation.

In AUR there is:

Editor support:

Awesome Typst.

I don't know if this helps.

orbitalquark commented 5 months ago

It does help. Thanks for the info!