-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: Typst Language Support #289
Conversation
environment's span
…es or conjunctions
&[ | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Punctuation(Punctuation::Comma), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Space(1), | ||
TokenKind::Word(_), | ||
TokenKind::Punctuation(Punctuation::Period), | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to find a way to simplify this while still being DAMP.
|
||
let typst_document = typst_syntax::Source::detached(source); | ||
let typst_tree = <typst_syntax::ast::Markup as typst_syntax::ast::AstNode>::from_untyped( | ||
typst_document.root(), | ||
) | ||
.expect("Unable to create typst document from parsed tree!"); | ||
dbg!(typst_tree.exprs().collect_vec()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove before opening PR.
Closing because I'm no longer a collaborator (now that it's under Automattic) so I have to work off of a fork again. Replaced by #302. |
No description provided.