Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Typst lexer #109

Open
wants to merge 1 commit into
base: default
Choose a base branch
from
Open

Conversation

Disonantemus
Copy link

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.

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
Copy link
Owner

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

@Disonantemus
Copy link
Author

Disonantemus commented Mar 19, 2024

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:

  • typstfmt-bin: formatter
  • typst-lsp-bin: language server
  • tree-sitter-typst-git
  • prettypst: formatter (Not in AUR).

Editor support:

Awesome Typst.

I don't know if this helps.

@orbitalquark
Copy link
Owner

It does help. Thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants