From 62361b4127c39fc1b165b81f24f52b14ddaa41db Mon Sep 17 00:00:00 2001 From: Leedehai <18319900+Leedehai@users.noreply.github.com> Date: Tue, 25 Apr 2023 05:24:07 -0400 Subject: Support indices preceding the base symbol, revamping #699 (#825) Breaking change: abbreviate attach() attachment params, top -> t, bottom -> b --- src/eval/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/eval/mod.rs') diff --git a/src/eval/mod.rs b/src/eval/mod.rs index d8f49d66..d2ca0e74 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -708,9 +708,9 @@ impl Eval for ast::MathAttach { #[tracing::instrument(name = "MathAttach::eval", skip_all)] fn eval(&self, vm: &mut Vm) -> SourceResult { let base = self.base().eval_display(vm)?; - let bottom = self.bottom().map(|expr| expr.eval_display(vm)).transpose()?; let top = self.top().map(|expr| expr.eval_display(vm)).transpose()?; - Ok((vm.items.math_attach)(base, bottom, top)) + let bottom = self.bottom().map(|expr| expr.eval_display(vm)).transpose()?; + Ok((vm.items.math_attach)(base, top, bottom, None, None, None, None)) } } -- cgit v1.2.3