1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 19:02:22 +01:00

Don't take a HighlightingAssets detour to build assets (#1802)

Move code to build assets to its own file. That results in better modularity and flexibility.

It also allows us to simplify HighlightingAssets a lot, since it will now always
be initialized with a SerializedSyntaxSet.
This commit is contained in:
Martin Nordholts
2021-08-24 07:58:03 +02:00
committed by GitHub
parent 12dfbdc400
commit f1c0fd7343
5 changed files with 112 additions and 139 deletions

View File

@@ -23,6 +23,8 @@ mod macros;
pub mod assets;
pub mod assets_metadata;
#[cfg(feature = "build-assets")]
mod build_assets;
pub mod config;
pub mod controller;
mod decorations;
@@ -40,8 +42,6 @@ mod preprocessor;
mod pretty_printer;
pub(crate) mod printer;
pub mod style;
#[cfg(feature = "build-assets")]
mod syntax_dependencies;
pub(crate) mod syntax_mapping;
mod terminal;
pub(crate) mod wrapping;