Skip to content

Commit 827d0fb

Browse files
authored
Merge pull request #952 from gmlueck/gmlueck/source-colors
Render preprocessing statements in different color
2 parents 39bad80 + 816bd71 commit 827d0fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)