add theme only constructor
This commit is contained in:
parent
a0f12e8ecd
commit
dc699e2ee5
|
@ -27,6 +27,13 @@ impl<'a> SyntectParser<'a> {
|
||||||
theme,
|
theme,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn with_theme(theme: &'a str) -> Self {
|
||||||
|
Self {
|
||||||
|
theme,
|
||||||
|
..Default::default()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Default for SyntectParser<'a> {
|
impl<'a> Default for SyntectParser<'a> {
|
||||||
|
|
Loading…
Reference in a new issue