diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-07-29 17:46:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-29 17:46:57 +0200 |
| commit | f34ba3dcda182d9b9c14cc94fdb48810bf18bef0 (patch) | |
| tree | 667a7aba2f26996c7ada8ce85952c384a1dbd5a1 /src/library/spacing.rs | |
| parent | e7ffdde43d09f60238590723c2829554806e23d5 (diff) | |
| parent | 9672d4320052d08b67d497febed4a0ad78bf9252 (diff) | |
Merge pull request #7 from typst/parser-update
Parser update
Diffstat (limited to 'src/library/spacing.rs')
| -rw-r--r-- | src/library/spacing.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/spacing.rs b/src/library/spacing.rs index 8d9c46aa..adca20af 100644 --- a/src/library/spacing.rs +++ b/src/library/spacing.rs @@ -46,9 +46,9 @@ function! { type Meta = ContentKind; - parse(header, body, ctx, f, meta) { + parse(header, body, state, f, meta) { ContentSpacingFunc { - body: body!(opt: body, ctx, f), + body: body!(opt: body, state, f), content: meta, spacing: header.args.pos.get::<f64>(&mut f.problems) .map(|num| num as f32) @@ -84,7 +84,7 @@ function! { type Meta = Option<SpecificAxis>; - parse(header, body, ctx, f, meta) { + parse(header, body, state, f, meta) { body!(nope: body, f); SpacingFunc { spacing: if let Some(axis) = meta { |
