Defect #26055 » 0001-Remove-internal-CodeRay-scanners.patch
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 |