feat: Add serde serialization to SyntectSettings (#7506)

This commit is contained in:
Nicolas 2025-09-09 11:17:07 +02:00 committed by GitHub
parent c2912369ca
commit 835e4f17df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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,