lib/rouge.rb in rouge-0.2.1 vs lib/rouge.rb in rouge-0.2.2

- old
+ new

@@ -5,11 +5,11 @@ class << self def highlight(text, lexer, formatter) lexer = Lexer.find(lexer) unless lexer.respond_to? :lex raise "unknown lexer #{lexer}" unless lexer - formatter.render(lexer.lex(text)) + formatter.format(lexer.lex(text)) end end end load_dir = Pathname.new(__FILE__).dirname @@ -37,20 +37,25 @@ load load_dir.join('rouge/lexers/viml.rb') load load_dir.join('rouge/lexers/javascript.rb') load load_dir.join('rouge/lexers/css.rb') load load_dir.join('rouge/lexers/html.rb') -load load_dir.join('rouge/lexers/haml.rb') load load_dir.join('rouge/lexers/xml.rb') load load_dir.join('rouge/lexers/php.rb') +load load_dir.join('rouge/lexers/haml.rb') +load load_dir.join('rouge/lexers/sass.rb') +load load_dir.join('rouge/lexers/scss.rb') + load load_dir.join('rouge/lexers/erb.rb') load load_dir.join('rouge/lexers/tcl.rb') load load_dir.join('rouge/lexers/python.rb') load load_dir.join('rouge/lexers/ruby.rb') load load_dir.join('rouge/lexers/perl.rb') load load_dir.join('rouge/lexers/factor.rb') +load load_dir.join('rouge/lexers/clojure.rb') +load load_dir.join('rouge/lexers/groovy.rb') load load_dir.join('rouge/lexers/haskell.rb') load load_dir.join('rouge/lexers/scheme.rb') load load_dir.join('rouge/lexers/common_lisp.rb')