Skip to content

Commit

Permalink
Remove rouge support for gentypes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlueck committed Jul 21, 2023
1 parent e43361d commit 66b5907
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 75 deletions.
73 changes: 0 additions & 73 deletions adoc/config/rouge/lib/rouge/lexers/sycl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,76 +180,6 @@ class Sycl < Cpp
wait_and_throw
)

# Generic types used in SYCL pseudo code descriptions like Gen,
# SGen, GenVec...
sycl_generic_types = %w(
floatn
vfloatn
vfloat3or4
mfloatn
mfloat3or4
genfloatf
doublen
vdoublen
vdouble3or4
mdoublen
mdouble3or4
genfloatd
halfn
vhalfn
mhalfn
genfloath
genfloat
sgenfloat
mgenfloat
gengeofloat
gengeodouble
vint8n
vint16n
vint32n
vint64n
vuint8n
vuint16n
vuint32n
vuint64n
mint8n
mint16n
mint32n
mint64n
muint8n
muint16n
muint32n
muint64n
mintn
mushortn
muintn
mulongn
mbooln
geninteger
sigeninteger
vigeninteger
migeninteger
vugeninteger
genint32
sgentype
vgentype
mgentype
intptr
floatptr
doubleptr
halfptr
vfloatnptr
vdoublenptr
vhalfnptr
mfloatnptr
mdoublenptr
mhalfnptr
mintnptr
vint32nptr
elementtype
unsignedtype
)

sycl_macros = %w(
__SYCL_DEVICE_ONLY__
__SYCL_SINGLE_SOURCE__
Expand Down Expand Up @@ -508,7 +438,6 @@ class Sycl < Cpp
# Literal::String::Regex
# Literal::String::Symbol
# Name::Attribute
# Name.Builtin.Pseudo
# Name.Function.Magic
# Name.Other
# Name.Variable.Magic
Expand All @@ -533,8 +462,6 @@ class Sycl < Cpp
Keyword::Pseudo
rule %r/(?:#{sycl_functions.join('|')})\b/,
Name::Function::Magic
rule %r/(?:#{sycl_generic_types.join('|')})\b/,
Name::Builtin::Pseudo
rule %r/(?:#{sycl_macros.join('|')})\b/,
Generic::Output
rule %r/(?:#{sycl_namespaces.join('|')})\b/,
Expand Down
2 changes: 0 additions & 2 deletions adoc/config/rouge/lib/rouge/themes/sycl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class SYCLspec < Github
style Keyword::Pseudo, :fg => '#9a32cd', :italic => true
# sycl_functions #00c5cd Turquoise 3
style Name::Function::Magic, :fg => '#00c5cd', :bold => true
# sycl_generic_types magenta #ff00ff
style Name::Builtin::Pseudo, :fg => '#ff00ff', :italic => true
# sycl_macros OliveDrab2 #b3ee3a
style Generic::Output, :fg => '#b3ee3a', :bold => true
# sycl_namespaces use official SYCL orange defined by Khronos #f35a1c
Expand Down

0 comments on commit 66b5907

Please sign in to comment.