diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-02 16:31:34 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-02 16:31:34 +0200 |
| commit | 533374db14087ac54fdc86afa5f009487ac1b850 (patch) | |
| tree | 0970eb1ca893fe45369d622b5bc1f226f0f66004 /src/lib.rs | |
| parent | 2188ef6b899cc10c84ed985e9ad9049fcc3eb662 (diff) | |
Refactor argument parsing 🔬
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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, }, |
