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 authored and GitHub committed 2021-08-24 07:58:03 +02:00
1 parent 12dfbdc400
commit f1c0fd7343
5 files changed
+112 -139

No files matched your search

+2 -2
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;