From 4c9f50df25000f18a989016bc307bd217ac5c771 Mon Sep 17 00:00:00 2001 From: Mischa The Evil Date: Sun, 28 May 2017 06:43:46 +0200 Subject: [PATCH 1/4] Remove internal CodeRay scanners. --- lib/redmine/syntax_highlighting.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/redmine/syntax_highlighting.rb b/lib/redmine/syntax_highlighting.rb index 4380627..6d0eab3 100644 --- a/lib/redmine/syntax_highlighting.rb +++ b/lib/redmine/syntax_highlighting.rb @@ -72,7 +72,8 @@ module Redmine def language_supported?(language) supported_languages = ::CodeRay::Scanners.list + - ::CodeRay::Scanners.plugin_hash.keys.map(&:to_sym) + ::CodeRay::Scanners.plugin_hash.keys.map(&:to_sym) - + %w(debug default raydebug scanner).map(&:to_sym) supported_languages.include?(language.to_s.downcase.to_sym) rescue false -- 1.9.1