Project

General

Profile

Defect #26055 » 0001-Remove-internal-CodeRay-scanners.patch

Mischa The Evil, 2017-05-28 15:56

View differences:

lib/redmine/syntax_highlighting.rb
72 72
        def language_supported?(language)
73 73
          supported_languages =
74 74
            ::CodeRay::Scanners.list +
75
            ::CodeRay::Scanners.plugin_hash.keys.map(&:to_sym)
75
            ::CodeRay::Scanners.plugin_hash.keys.map(&:to_sym) -
76
            %w(debug default raydebug scanner).map(&:to_sym)
76 77
          supported_languages.include?(language.to_s.downcase.to_sym)
77 78
        rescue
78 79
          false
(1-1/4)