feat: bump typst to v0.14.0 (#2201)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run

Co-authored-by: paran3xus <paran3xus007@gmail.com>
This commit is contained in:
Myriad-Dreamin 2025-10-28 23:27:31 +08:00 committed by GitHub
parent a6c39d4306
commit f011022097
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
131 changed files with 1671 additions and 1501 deletions

View file

@ -274,15 +274,15 @@ impl InstrumentWorker {
fn visit_node(&mut self, node: &SyntaxNode) {
if let Some(expr) = node.cast::<ast::Expr>() {
match expr {
ast::Expr::Code(..) => {
ast::Expr::CodeBlock(..) => {
self.instrument_block(node);
return;
}
ast::Expr::While(while_expr) => {
ast::Expr::WhileLoop(while_expr) => {
self.instrument_block_child(node, while_expr.body().span(), Span::detached());
return;
}
ast::Expr::For(for_expr) => {
ast::Expr::ForLoop(for_expr) => {
self.instrument_block_child(node, for_expr.body().span(), Span::detached());
return;
}
@ -298,9 +298,9 @@ impl InstrumentWorker {
self.instrument_block_child(node, closure.body().span(), Span::detached());
return;
}
ast::Expr::Show(show_rule) => {
ast::Expr::ShowRule(show_rule) => {
let transform = show_rule.transform().to_untyped().span();
let is_set = matches!(show_rule.transform(), ast::Expr::Set(..));
let is_set = matches!(show_rule.transform(), ast::Expr::SetRule(..));
for child in node.children() {
if transform == child.span() {
@ -335,9 +335,9 @@ impl InstrumentWorker {
| ast::Expr::Label(..)
| ast::Expr::Ref(..)
| ast::Expr::Heading(..)
| ast::Expr::List(..)
| ast::Expr::Enum(..)
| ast::Expr::Term(..)
| ast::Expr::ListItem(..)
| ast::Expr::EnumItem(..)
| ast::Expr::TermItem(..)
| ast::Expr::Equation(..)
| ast::Expr::Math(..)
| ast::Expr::MathText(..)
@ -357,7 +357,7 @@ impl InstrumentWorker {
| ast::Expr::Float(..)
| ast::Expr::Numeric(..)
| ast::Expr::Str(..)
| ast::Expr::Content(..)
| ast::Expr::ContentBlock(..)
| ast::Expr::Parenthesized(..)
| ast::Expr::Array(..)
| ast::Expr::Dict(..)
@ -365,14 +365,14 @@ impl InstrumentWorker {
| ast::Expr::Binary(..)
| ast::Expr::FieldAccess(..)
| ast::Expr::FuncCall(..)
| ast::Expr::Let(..)
| ast::Expr::DestructAssign(..)
| ast::Expr::Set(..)
| ast::Expr::Import(..)
| ast::Expr::Include(..)
| ast::Expr::Break(..)
| ast::Expr::Continue(..)
| ast::Expr::Return(..) => {}
| ast::Expr::LetBinding(..)
| ast::Expr::DestructAssignment(..)
| ast::Expr::SetRule(..)
| ast::Expr::ModuleImport(..)
| ast::Expr::ModuleInclude(..)
| ast::Expr::LoopBreak(..)
| ast::Expr::LoopContinue(..)
| ast::Expr::FuncReturn(..) => {}
}
}

View file

@ -52,15 +52,15 @@ impl InstrumentWorker {
fn visit_node(&mut self, node: &SyntaxNode) {
if let Some(expr) = node.cast::<ast::Expr>() {
match expr {
ast::Expr::Code(..) => {
ast::Expr::CodeBlock(..) => {
self.instrument_block(node);
return;
}
ast::Expr::While(while_expr) => {
ast::Expr::WhileLoop(while_expr) => {
self.instrument_block_child(node, while_expr.body().span(), Span::detached());
return;
}
ast::Expr::For(for_expr) => {
ast::Expr::ForLoop(for_expr) => {
self.instrument_block_child(node, for_expr.body().span(), Span::detached());
return;
}
@ -76,7 +76,7 @@ impl InstrumentWorker {
self.instrument_block_child(node, closure.body().span(), Span::detached());
return;
}
ast::Expr::Show(show_rule) => {
ast::Expr::ShowRule(show_rule) => {
let transform = show_rule.transform().to_untyped().span();
for child in node.children() {
@ -102,9 +102,9 @@ impl InstrumentWorker {
| ast::Expr::Label(..)
| ast::Expr::Ref(..)
| ast::Expr::Heading(..)
| ast::Expr::List(..)
| ast::Expr::Enum(..)
| ast::Expr::Term(..)
| ast::Expr::ListItem(..)
| ast::Expr::EnumItem(..)
| ast::Expr::TermItem(..)
| ast::Expr::Equation(..)
| ast::Expr::Math(..)
| ast::Expr::MathText(..)
@ -124,7 +124,7 @@ impl InstrumentWorker {
| ast::Expr::Float(..)
| ast::Expr::Numeric(..)
| ast::Expr::Str(..)
| ast::Expr::Content(..)
| ast::Expr::ContentBlock(..)
| ast::Expr::Parenthesized(..)
| ast::Expr::Array(..)
| ast::Expr::Dict(..)
@ -132,15 +132,15 @@ impl InstrumentWorker {
| ast::Expr::Binary(..)
| ast::Expr::FieldAccess(..)
| ast::Expr::FuncCall(..)
| ast::Expr::Let(..)
| ast::Expr::DestructAssign(..)
| ast::Expr::Set(..)
| ast::Expr::LetBinding(..)
| ast::Expr::DestructAssignment(..)
| ast::Expr::SetRule(..)
| ast::Expr::Contextual(..)
| ast::Expr::Import(..)
| ast::Expr::Include(..)
| ast::Expr::Break(..)
| ast::Expr::Continue(..)
| ast::Expr::Return(..) => {}
| ast::Expr::ModuleImport(..)
| ast::Expr::ModuleInclude(..)
| ast::Expr::LoopBreak(..)
| ast::Expr::LoopContinue(..)
| ast::Expr::FuncReturn(..) => {}
}
}