summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-02 16:31:34 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-02 16:31:34 +0200
commit533374db14087ac54fdc86afa5f009487ac1b850 (patch)
tree0970eb1ca893fe45369d622b5bc1f226f0f66004 /src/lib.rs
parent2188ef6b899cc10c84ed985e9ad9049fcc3eb662 (diff)
Refactor argument parsing 🔬
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 22ef5208..a295e152 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,7 +23,10 @@ use crate::diagnostic::Diagnostics;
use crate::font::SharedFontLoader;
use crate::layout::MultiLayout;
use crate::style::{LayoutStyle, PageStyle, TextStyle};
-use crate::syntax::{Decorations, SyntaxModel, Scope, ParseState, parse};
+use crate::syntax::decoration::Decorations;
+use crate::syntax::model::SyntaxModel;
+use crate::syntax::parsing::{parse, ParseState};
+use crate::syntax::scope::Scope;
use crate::syntax::span::{Offset, Pos};
/// Declare a module and reexport all its contents.
@@ -112,8 +115,8 @@ impl Typesetter {
expansion: LayoutExpansion::new(true, true),
}],
repeat: true,
- axes: LayoutAxes::new(LeftToRight, TopToBottom),
- alignment: LayoutAlignment::new(Origin, Origin),
+ axes: LayoutAxes::new(LTT, TTB),
+ align: LayoutAlign::new(Start, Start),
nested: false,
debug: self.debug,
},