From 6198bde3665cbfde664ea9ee3a386eca162b6b3c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 6 Jun 2017 21:54:55 +0000 Subject: [PATCH] Remove internal CodeRay scanners (#26055). Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16622 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 4380627ac..6d0eab371 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 -- 2.39.5