add theme only constructor

This commit is contained in:
KitsuneCafe 2024-02-04 14:57:32 -05:00
parent a0f12e8ecd
commit dc699e2ee5
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ impl<'a> SyntectParser<'a> {
theme,
}
}
pub fn with_theme(theme: &'a str) -> Self {
Self {
theme,
..Default::default()
}
}
}
impl<'a> Default for SyntectParser<'a> {