Skip to content

Commit 6ae82e0

Browse files
committed
Render preprocessing statements in different color
Cherry pick #952 from main (cherry picked from commit 827d0fb)
1 parent 8de897b commit 6ae82e0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

adoc/config/rouge/lib/rouge/themes/sycl_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ class SYCLspec < Github
3131
style Comment, :fg => '#9acd32'
3232
style Comment::Multiline, :fg => '#9acd32'
3333
style Comment::Single, :fg => '#9acd32'
34+
# Give preprocessing statements a different color from comments.
35+
# DarkOrchid3 (#9a32cd) is close to what Visual Studio Code uses in its
36+
# Light Modern theme. This is the same color we use for sycl_data_types
37+
# (above), but those are very uncommon in our code listings now.
38+
style Comment::Preproc, :fg => '#9a32cd'
39+
style Comment::PreprocFile, :fg => '#9a32cd'
3440
# Use a clearer white background
3541
style Text, :bg => '#ffffff'
3642

0 commit comments

Comments
 (0)