From 66b590728429a173593dc6a00bf2a9438cc6e4fb Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Fri, 21 Jul 2023 08:54:57 -0400 Subject: [PATCH] Remove rouge support for gentypes --- adoc/config/rouge/lib/rouge/lexers/sycl.rb | 73 ------------------- .../rouge/lib/rouge/themes/sycl_spec.rb | 2 - 2 files changed, 75 deletions(-) diff --git a/adoc/config/rouge/lib/rouge/lexers/sycl.rb b/adoc/config/rouge/lib/rouge/lexers/sycl.rb index 740230ff..8a529fad 100644 --- a/adoc/config/rouge/lib/rouge/lexers/sycl.rb +++ b/adoc/config/rouge/lib/rouge/lexers/sycl.rb @@ -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__ @@ -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 @@ -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/, diff --git a/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb b/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb index 7e4862e4..bca27bc4 100644 --- a/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb +++ b/adoc/config/rouge/lib/rouge/themes/sycl_spec.rb @@ -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