@@ -15,8 +15,8 @@ pub const BAT_THEME_DEFAULT: &str = "Monokai Extended";
1515
1616#[derive(Debug)]
1717pub struct HighlightingAssets {
18− pub syntax_set: SyntaxSet,
19− pub theme_set: ThemeSet,
18+ pub(crate) syntax_set: SyntaxSet,
19+ pub(crate) theme_set: ThemeSet,
2020}
2121
2222impl HighlightingAssets {
@@ -138,6 +138,14 @@ impl HighlightingAssets {
138138 Ok(())
139139 }
140140
141+ pub fn syntaxes(&self) -> &[SyntaxReference] {
142+ self.syntax_set.syntaxes()
143+ }
144+
145+ pub fn themes(&self) -> &BTreeMap<String, Theme> {
146+ &self.theme_set.themes
147+ }
148+
141149 pub fn get_theme(&self, theme: &str) -> &Theme {
142150 match self.theme_set.themes.get(theme) {
143151 Some(theme) => theme,