From 6ae82e0dc313d9397d07c5ceb2cedec81c2a1af9 Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Fri, 16 Jan 2026 15:54:34 -0500 Subject: [PATCH] Render preprocessing statements in different color Cherry pick #952 from main (cherry picked from commit 827d0fbb2d91d48ba01c763d118ec57e48cc34ca) --- adoc/config/rouge/lib/rouge/themes/sycl_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb b/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb index 95a8c34f7..b03f62f67 100644 --- a/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb +++ b/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb @@ -31,6 +31,12 @@ class SYCLspec < Github style Comment, :fg => '#9acd32' style Comment::Multiline, :fg => '#9acd32' style Comment::Single, :fg => '#9acd32' + # Give preprocessing statements a different color from comments. + # DarkOrchid3 (#9a32cd) is close to what Visual Studio Code uses in its + # Light Modern theme. This is the same color we use for sycl_data_types + # (above), but those are very uncommon in our code listings now. + style Comment::Preproc, :fg => '#9a32cd' + style Comment::PreprocFile, :fg => '#9a32cd' # Use a clearer white background style Text, :bg => '#ffffff'