diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-02 22:21:58 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-02 22:21:58 +0200 |
| commit | 5a8f2fb73ddafba9fdbe952385ae2676126183ae (patch) | |
| tree | f65dcc5c8fc3809171e0cc1a985d466159ccb254 /src/library/mod.rs | |
| parent | 266d457292e7461d448f9141030028ea68b573d1 (diff) | |
Replace body! macro with functions 🧰
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index 7a664257..7240e42b 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -1,4 +1,4 @@ -//! The _Typst_ standard library. +//! The standard library. use crate::func::prelude::*; use crate::layout::{LayoutContext, Commands}; @@ -37,7 +37,7 @@ function! { parse(header, body, state, f) { header.args.pos.0.clear(); header.args.key.0.clear(); - ValFunc { body: body!(opt: body, state, f) } + ValFunc { body: parse_maybe_body(body, state, f), } } layout(self, ctx, f) { |
