summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-06 21:54:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-06 21:54:55 +0000
commit6198bde3665cbfde664ea9ee3a386eca162b6b3c (patch)
tree585a1655b7bf5dd8c791f738f2b0c6ed495ea0ef /lib
parentb997f03211ee904da2667cabc421d40c92142e6c (diff)
downloadredmine-6198bde3665cbfde664ea9ee3a386eca162b6b3c.tar.gz
redmine-6198bde3665cbfde664ea9ee3a386eca162b6b3c.zip
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
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