lib/rouge.rb in rouge-1.9.1 vs lib/rouge.rb in rouge-1.10.0

- old
+ new

@@ -38,10 +38,13 @@ load load_dir.join('rouge/lexer.rb') load load_dir.join('rouge/regex_lexer.rb') load load_dir.join('rouge/template_lexer.rb') -Dir.glob(load_dir.join('rouge/lexers/*.rb')).each { |f| load f } +lexers_dir = load_dir.join('rouge/lexers') +Dir.glob(lexers_dir.join('*.rb')).each do |f| + Rouge::Lexers.load_lexer(Pathname.new(f).relative_path_from(lexers_dir).to_s) +end load load_dir.join('rouge/formatter.rb') load load_dir.join('rouge/formatters/html.rb') load load_dir.join('rouge/formatters/terminal256.rb') load load_dir.join('rouge/formatters/null.rb')