mirror of
https://github.com/storytold/egui.git
synced 2026-11-22 18:41:52 +01:00
feat: Add serde serialization to SyntectSettings (#7506)
This commit is contained in:
1 parent
c2912369ca
commit
835e4f17df
1 file changed
+1
@@ -470,6 +470,7 @@ impl CodeTheme {
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#[cfg(feature = "syntect")]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct SyntectSettings {
|
||||
pub ps: syntect::parsing::SyntaxSet,
|
||||
pub ts: syntect::highlighting::ThemeSet,
|
||||
|
||||
Reference in new issue
Block a user