diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-30 22:28:56 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-30 22:28:56 +0100 |
| commit | 269f069a4d721a986807293ef71be1348bfae3d4 (patch) | |
| tree | 31b737c4ff2aead3eb5e2673828595bb26622032 /src/func/macros.rs | |
| parent | b8620121a692df6313eeb5ccf7baf89c1e364116 (diff) | |
Simple line layouter 🧾
Diffstat (limited to 'src/func/macros.rs')
| -rw-r--r-- | src/func/macros.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/func/macros.rs b/src/func/macros.rs index df795213..2da219bc 100644 --- a/src/func/macros.rs +++ b/src/func/macros.rs @@ -117,6 +117,7 @@ macro_rules! function { } /// Parse the body of a function. +/// /// - If the function does not expect a body, use `parse!(forbidden: body)`. /// - If the function can have a body, use `parse!(optional: body, ctx)`. /// - If the function must have a body, use `parse!(expected: body, ctx)`. @@ -146,7 +147,7 @@ macro_rules! parse { } /// Early-return with a formatted typesetting error or construct an error -/// expression without returning when prefixed with `@`. +/// expression. #[macro_export] macro_rules! error { (@unexpected_argument) => (error!(@"unexpected argument")); |
