From 06ca740d01b428f12f6bd327257cd05dce737b03 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 9 Feb 2021 19:46:57 +0100 Subject: =?UTF-8?q?Split=20evaluation=20and=20execution=20=F0=9F=94=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/node.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/syntax/node.rs') diff --git a/src/syntax/node.rs b/src/syntax/node.rs index b4866068..fe9767a1 100644 --- a/src/syntax/node.rs +++ b/src/syntax/node.rs @@ -37,7 +37,7 @@ impl Pretty for Node { Self::Expr(expr) => { if let Expr::Call(call) = expr { // Format function templates appropriately. - pretty_func_template(call, p, false) + call.pretty_bracketed(p, false) } else { expr.pretty(p); } @@ -49,15 +49,15 @@ impl Pretty for Node { /// A section heading: `= Introduction`. #[derive(Debug, Clone, PartialEq)] pub struct NodeHeading { - /// The section depth (numer of equals signs minus 1, capped at 5). - pub level: Spanned, + /// The section depth (numer of equals signs minus 1). + pub level: usize, /// The contents of the heading. pub contents: Tree, } impl Pretty for NodeHeading { fn pretty(&self, p: &mut Printer) { - for _ in 0 ..= self.level.v { + for _ in 0 ..= self.level { p.push('='); } self.contents.pretty(p); -- cgit v1.2.3