From 3960f8f7d935fc5b47404abeb5a64f458d0616c2 Mon Sep 17 00:00:00 2001 From: Albert Dong Date: Tue, 5 Dec 2023 10:12:53 -0800 Subject: [PATCH] Add theming for scopes required by diff format (#2838) --- crates/typst/src/text/raw.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/typst/src/text/raw.rs b/crates/typst/src/text/raw.rs index 5a7323cf1..aa2f93f88 100644 --- a/crates/typst/src/text/raw.rs +++ b/crates/typst/src/text/raw.rs @@ -792,6 +792,9 @@ pub static RAW_THEME: Lazy = Lazy::new(|| synt::Theme { item("support.macro", Some("#16718d"), None), item("meta.annotation", Some("#301414"), None), item("entity.other, meta.interpolation", Some("#8b41b1"), None), + item("meta.diff.range", Some("#8b41b1"), None), + item("markup.inserted, meta.diff.header.to-file", Some("#298e0d"), None), + item("markup.deleted, meta.diff.header.from-file", Some("#d73a49"), None), ], });