1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #741 on hold

RubyConsoleLexer's prompt pattern is a bit outdated

created an issue

The pattern was last edited by thatch here: [[https://bitbucket.org/birkenfeld/pygments-main/changeset/6f317b427b60|6f317b427b60]]

Currently we have:

{{{ prompt_re = re.compile('irb([a-zA-Z][a-zA-Z0-9_]):\d{3}:\d+[>"\'] '|>> |\?> ') }}}

But newer Ruby IRB sessions look like this:

{{{ $ irb ruby-1.9.2-p180 :001 > puts "test" test => nil ruby-1.9.2-p180 :002 > }}}

This results in essentially non-highlighted IRB sessions.

Comments (3)

  1. rossmeissl reporter

    Actually, you're right -- I think it might be me. I have RVM (https://rvm.io/) installed, as does a very large portion of the Ruby community. It appears that RVM tweaks the standard IRB prompt to make sure you know which version of Ruby you're using.

    Will you support RVM-ified IRB sessions?

  2. Log in to comment