summaryrefslogtreecommitdiff
path: root/src/library/font.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-02 22:21:58 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-02 22:21:58 +0200
commit5a8f2fb73ddafba9fdbe952385ae2676126183ae (patch)
treef65dcc5c8fc3809171e0cc1a985d466159ccb254 /src/library/font.rs
parent266d457292e7461d448f9141030028ea68b573d1 (diff)
Replace body! macro with functions 🧰
Diffstat (limited to 'src/library/font.rs')
-rw-r--r--src/library/font.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/font.rs b/src/library/font.rs
index efcbb86f..21ac14c7 100644
--- a/src/library/font.rs
+++ b/src/library/font.rs
@@ -17,7 +17,7 @@ function! {
classes: Vec<(String, Vec<String>)>,
}
- parse(header, body, ctx, f) {
+ parse(header, body, state, f) {
let size = header.args.pos.get::<ScaleLength>();
let style = header.args.key.get::<FontStyle>("style", f);
@@ -41,7 +41,7 @@ function! {
.collect();
FontFunc {
- body: body!(opt: body, ctx, f),
+ body: parse_maybe_body(body, state, f),
size,
style,
weight,