diff --git a/examples/pff2.rs b/examples/pff2.rs index 35fd41f..b5c8499 100644 --- a/examples/pff2.rs +++ b/examples/pff2.rs @@ -4,7 +4,7 @@ use std::fs::read; use args::Args; use clap::Parser as _; -use theme_parser::pff2::Parser; +use theme_parser::parser::pff2::Parser; mod args { use std::path::PathBuf; diff --git a/examples/theme_txt.rs b/examples/theme_txt.rs index bbd1ca6..a2fbf96 100644 --- a/examples/theme_txt.rs +++ b/examples/theme_txt.rs @@ -5,7 +5,7 @@ use std::{fs::read_to_string, sync::Arc}; use args::Args; use clap::Parser; use nom::{error::Error, Finish}; -use theme_parser::theme_txt::Document; +use theme_parser::parser::theme_txt::Document; mod args { use std::path::PathBuf; diff --git a/src/lib.rs b/src/lib.rs index ae7418d..b8883b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,9 @@ extern crate test_case; extern crate thiserror; -pub mod pff2; -pub mod theme_txt; +pub mod parser { + pub mod pff2; + pub mod theme_txt; +} pub type OwnedSlice = Rc; diff --git a/src/pff2.rs b/src/parser/pff2.rs similarity index 100% rename from src/pff2.rs rename to src/parser/pff2.rs diff --git a/src/theme_txt.rs b/src/parser/theme_txt.rs similarity index 99% rename from src/theme_txt.rs rename to src/parser/theme_txt.rs index e61544b..853a804 100644 --- a/src/theme_txt.rs +++ b/src/parser/theme_txt.rs @@ -4,7 +4,7 @@ //! statements, each is either a [`Component`] or a [`GlobalProperty`]. //! //! ```rust -//! # use theme_parser::theme_txt::*; +//! # use theme_parser::parser::theme_txt::*; //! let theme_txt = r#"# your average theme file //! //! terminal-font: "Monospace"