diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-31 20:26:21 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-31 20:26:21 +0100 |
| commit | 110e4b9cb9dcbe590d345d8883f0c5f111752f1c (patch) | |
| tree | cb78d7efef91296c2022a02102897b96a25e8619 /src/func/mod.rs | |
| parent | 65ec3764e59353995a4feaa4214aea8c3e59bc3a (diff) | |
Spans for all parts of functions ✅
Diffstat (limited to 'src/func/mod.rs')
| -rw-r--r-- | src/func/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/func/mod.rs b/src/func/mod.rs index 30b5b825..402f0111 100644 --- a/src/func/mod.rs +++ b/src/func/mod.rs @@ -15,7 +15,7 @@ pub mod prelude { pub use crate::func::{Command, CommandList, Function}; pub use crate::layout::{layout_tree, Layout, LayoutContext, MultiLayout}; pub use crate::layout::{Flow, Alignment, LayoutError, LayoutResult}; - pub use crate::syntax::{Expression, FuncHeader, SyntaxTree}; + pub use crate::syntax::{SyntaxTree, FuncHeader, FuncArgs, Expression, Spanned, Span}; pub use crate::syntax::{parse, ParseContext, ParseError, ParseResult}; pub use crate::size::{Size, Size2D, SizeBox}; pub use crate::style::{PageStyle, TextStyle}; @@ -144,9 +144,9 @@ pub enum Command<'a> { } macro_rules! commands { - ($($x:expr),*$(,)*) => ({ + ($($x:expr),*$(,)*) => ( $crate::func::CommandList::from_vec(vec![$($x,)*]) - }); + ); } /// A map from identifiers to functions. |
