diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-01-16 17:51:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-01-16 17:51:04 +0100 |
| commit | 08b91a265fcda74f5463473938ec33873b49a7f7 (patch) | |
| tree | 747ac6a0b385a14a4aa5adbc3f21ef7b9653bd78 /src/library/boxed.rs | |
| parent | 15ad30555bdad8e7b192fdcf7d4543c0d3fb18ce (diff) | |
Powerful parser testing 🐱👤
Diffstat (limited to 'src/library/boxed.rs')
| -rw-r--r-- | src/library/boxed.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/boxed.rs b/src/library/boxed.rs index da06a371..af236da4 100644 --- a/src/library/boxed.rs +++ b/src/library/boxed.rs @@ -13,11 +13,11 @@ function! { debug: Option<bool>, } - parse(args, body, ctx) { + parse(header, body, ctx) { BoxFunc { body: parse!(optional: body, ctx).unwrap_or(SyntaxTree::new()), - map: ExtentMap::new(&mut args, false)?, - debug: args.get_key_opt::<bool>("debug")?, + map: ExtentMap::new(&mut header.args, false)?, + debug: header.args.get_key_opt::<bool>("debug")?, } } |
