]> source.dussan.org Git - redmine.git/commitdiff
Remove internal CodeRay scanners (#26055).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 6 Jun 2017 21:54:55 +0000 (21:54 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 6 Jun 2017 21:54:55 +0000 (21:54 +0000)
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

index 4380627ac258eaf4388df2158d0d6dc1faa56c23..6d0eab371172923046f5f652ed50544f685c093e 100644 (file)
@@ -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