From: Jean-Philippe Lang Date: Tue, 6 Jun 2017 21:54:55 +0000 (+0000) Subject: Remove internal CodeRay scanners (#26055). X-Git-Tag: 3.4.0~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6198bde3665cbfde664ea9ee3a386eca162b6b3c;p=redmine.git 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 --- 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