mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
feat: Add serde serialization to SyntectSettings (#7506)
This commit is contained in:
@@ -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