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

feat: Typst Language Support #289

Closed
wants to merge 16 commits into from
Closed

feat: Typst Language Support #289

wants to merge 16 commits into from

Conversation

grantlemons
Copy link
Contributor

No description provided.

@grantlemons grantlemons self-assigned this Nov 27, 2024
Comment on lines +391 to +425
&[
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),
]
Copy link
Contributor Author

@grantlemons grantlemons Nov 27, 2024

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.

Comment on lines +472 to +478

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());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove before opening PR.

@grantlemons
Copy link
Contributor Author

grantlemons commented Dec 3, 2024

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.

@grantlemons grantlemons closed this Dec 3, 2024
@elijah-potter elijah-potter deleted the typst-support branch December 4, 2024 05:07
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.

Typst support
2 participants