summaryrefslogtreecommitdiff
path: root/src/library/boxed.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-01-05 11:18:13 +0100
committerLaurenz <laurmaedje@gmail.com>2020-01-05 11:18:13 +0100
commitbd384a2a633e21cd7deff7ed2a29a9c03a63a20e (patch)
tree12246c7c9142efe5fc2b2feb14fe4f286e3e177f /src/library/boxed.rs
parent7b84f3b553de672e5374e142467f63b10009aeca (diff)
Re-enable *, _ and `.
Diffstat (limited to 'src/library/boxed.rs')
-rw-r--r--src/library/boxed.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library/boxed.rs b/src/library/boxed.rs
index 7333c50f..a4d059cb 100644
--- a/src/library/boxed.rs
+++ b/src/library/boxed.rs
@@ -3,17 +3,18 @@ use smallvec::smallvec;
use crate::func::prelude::*;
use super::maps::ExtentMap;
+
function! {
/// `box`: Layouts content into a box.
#[derive(Debug, PartialEq)]
- pub struct Boxed {
+ pub struct BoxFunc {
body: SyntaxTree,
map: ExtentMap<PSize>,
debug: Option<bool>,
}
parse(args, body, ctx) {
- Boxed {
+ BoxFunc {
body: parse!(optional: body, ctx).unwrap_or(SyntaxTree::new()),
map: ExtentMap::new(&mut args, false)?,
debug: args.get_key_opt::<bool>("debug")?,