diff options
| author | cAttte <26514199+cAttte@users.noreply.github.com> | 2025-06-12 11:09:37 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 14:09:37 +0000 |
| commit | f9897479d2a8a865c4033bc44ec9a85fb5000795 (patch) | |
| tree | 498f159589cb1cf14c171a31750189023cad8327 /crates/typst-cli | |
| parent | bd41fb9427f3965b91ac467fe12045bbb793b5e9 (diff) | |
Unify `EvalMode` and `LexMode` into `SyntaxMode` (#6432)
Diffstat (limited to 'crates/typst-cli')
| -rw-r--r-- | crates/typst-cli/src/query.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-cli/src/query.rs b/crates/typst-cli/src/query.rs index 7806e456..b1a44620 100644 --- a/crates/typst-cli/src/query.rs +++ b/crates/typst-cli/src/query.rs @@ -5,9 +5,9 @@ use typst::diag::{bail, HintedStrResult, StrResult, Warned}; use typst::engine::Sink; use typst::foundations::{Content, IntoValue, LocatableSelector, Scope}; use typst::layout::PagedDocument; -use typst::syntax::Span; +use typst::syntax::{Span, SyntaxMode}; use typst::World; -use typst_eval::{eval_string, EvalMode}; +use typst_eval::eval_string; use crate::args::{QueryCommand, SerializationFormat}; use crate::compile::print_diagnostics; @@ -63,7 +63,7 @@ fn retrieve( Sink::new().track_mut(), &command.selector, Span::detached(), - EvalMode::Code, + SyntaxMode::Code, Scope::default(), ) .map_err(|errors| { |
