From 835e4f17dfc628fa90ea7c018778162cb7d2df11 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 9 Sep 2025 11:17:07 +0200 Subject: [PATCH] feat: Add serde serialization to SyntectSettings (#7506) --- crates/egui_extras/src/syntax_highlighting.rs | 1 + 1 file changed, 1 insertion(+) 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,