summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/syntax_highlighting.rb3
1 files changed, 2 insertions, 1 deletions
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