diff --git a/crates/egui_extras/src/syntax_highlighting.rs b/crates/egui_extras/src/syntax_highlighting.rs index c08c6975..2a5fd39f 100644 --- a/crates/egui_extras/src/syntax_highlighting.rs +++ b/crates/egui_extras/src/syntax_highlighting.rs @@ -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,