Replace Lexer with Pygments::Lexer

This commit is contained in:
Joshua Peek
2011-08-23 12:41:06 -05:00
parent bb11317546
commit 0864b9847f
12 changed files with 33 additions and 1995 deletions

View File

@@ -1,4 +1,3 @@
require 'rake/clean'
require 'rake/testtask'
task :default => :test
@@ -6,16 +5,3 @@ task :default => :test
Rake::TestTask.new do |t|
t.warning = true
end
CLOBBER.include 'lib/linguist/lexers.yml'
file 'lib/linguist/lexers.yml' do |f|
# GitHub vendored pygments path
# vendor/python/pygments
path = File.expand_path('../../../python/pygments', __FILE__)
ENV['PYTHONPATH'] = path if File.directory?(path)
sh "python ./bin/pygments-lexers > #{f.name}"
end
task :lexers => 'lib/linguist/lexers.yml'