diff --git a/crates/theme/src/styles/syntax.rs b/crates/theme/src/styles/syntax.rs index d6189f73e3e10da39918932559503787a129af64..4e17f4b507eb397f74143c4877c0c8dc5eb98502 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