diff --git a/crates/theme/src/styles/syntax.rs b/crates/theme/src/styles/syntax.rs index d6189f73e3..4e17f4b507 100644 --- a/crates/theme/src/styles/syntax.rs +++ b/crates/theme/src/styles/syntax.rs @@ -127,7 +127,7 @@ impl SyntaxTheme { } } - // TODO: Get this working with `#[cfg(test)]`. Why isn't it? + #[cfg(any(test, feature = "test-support"))] pub fn new_test(colors: impl IntoIterator) -> Self { SyntaxTheme { highlights: colors