mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-29 21:31:01 +00:00
Replace Lexer with Pygments::Lexer
This commit is contained in:
14
Rakefile
14
Rakefile
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user