Skip to content

Commit

Permalink
Make the Colorize class work again.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/DietRB/trunk@4853 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
alloy committed Oct 31, 2010
1 parent 052972f commit db9a497
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions TODO
@@ -1,3 +1,4 @@
* Move auto_indent option to formatter
* Complete file paths in strings (for require etc). * Complete file paths in strings (for require etc).
* Write docs for using a as library. Probably right after creating a Cocoa client. * Write docs for using a as library. Probably right after creating a Cocoa client.
* Write a not useless README. * Write a not useless README.
Expand Down
4 changes: 2 additions & 2 deletions lib/irb/ext/colorize.rb
Expand Up @@ -169,7 +169,7 @@ def colorize(str)
Ripper.lex(str).map { |_, type, token| colorize_token(type, token) }.join Ripper.lex(str).map { |_, type, token| colorize_token(type, token) }.join
end end


def prompt(context) def prompt(context, indent = false)
colorize_token(:prompt, super) colorize_token(:prompt, super)
end end


Expand All @@ -183,4 +183,4 @@ def result(object)
end end
end end


IRB.formatter = IRB::ColoredFormatter.new IRB.formatter = IRB::ColoredFormatter.new

0 comments on commit db9a497

Please sign in to comment.