Skip to content

Commit

Permalink
Add rake task for updating vendored pygments
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Aug 23, 2011
1 parent 31ad073 commit ea200af
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Rakefile
Expand Up @@ -30,3 +30,21 @@ Rake::TestTask.new 'test' do |t|
t.ruby_opts = ['-rubygems']
end
task :test => :build

# ==========================================================
# Vendor
# ==========================================================

namespace :vendor do
file 'vendor/pygments-main' do |f|
sh "hg clone https://bitbucket.org/birkenfeld/pygments-main #{f.name}"
sh "hg --repository #{f.name} identify --id > #{f.name}/REVISION"
rm_rf Dir["#{f.name}/.hg*"]
end

task :clobber do
rm_rf 'vendor/pygments-main'
end

task :update => [:clobber, 'vendor/pygments-main']
end
1 change: 1 addition & 0 deletions vendor/pygments-main/REVISION
@@ -0,0 +1 @@
456992e7ff81
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/lexers/pypylog.py
Expand Up @@ -49,7 +49,7 @@ class PyPyLogLexer(RegexLexer):
(r"<.*?>", Name.Builtin),
(r"(debug_merge_point|jump|finish)", Name.Class),
(r"(int_add_ovf|int_add|int_sub_ovf|int_sub|int_mul_ovf|int_mul|"
r"ind_mod|int_rshift|int_and|int_or|int_xor|int_eq|int_ne|int_ge|"
r"int_mod|int_rshift|int_and|int_or|int_xor|int_eq|int_ne|int_ge|"
r"int_gt|int_le|int_lt|int_is_zero|int_is_true|"
r"uint_floordiv|uint_ge|uint_lt|"
r"float_add|float_sub|float_mul|float_truediv|"
Expand Down

0 comments on commit ea200af

Please sign in to comment.