@@ -90,7 +90,8 @@ impl HighlightingAssets {
9090 self.fallback_theme = Some(theme);
9191 }
9292
93− fn get_syntax_set(&self) -> Result<&SyntaxSet> {
93+ /// Return the collection of syntect syntax definitions.
94+ pub fn get_syntax_set(&self) -> Result<&SyntaxSet> {
9495 self.syntax_set_cell
9596 .get_or_try_init(|| self.serialized_syntax_set.deserialize())
9697 }
@@ -186,7 +187,8 @@ impl HighlightingAssets {
186187 }
187188 }
188189
189− pub(crate) fn get_theme(&self, theme: &str) -> &Theme {
190+ /// Look up a syntect theme by name.
191+ pub fn get_theme(&self, theme: &str) -> &Theme {
190192 match self.get_theme_set().get(theme) {
191193 Some(theme) => theme,
192194 None => {