Commits

thatch  committed 38e669d

Support simple prompt from irb (Closes #363)

  • Participants
  • Parent commits 21c06fb
  • Branches trunk

Comments (0)

Files changed (2)

 
 - Unified Diff lexer supports the "udiff" alias now.
 
+- RubyConsoleLexer now supports simple prompt mode (#363)
+
 
 Version 0.11.1
 --------------

File pygments/lexers/agile.py

     aliases = ['rbcon', 'irb']
     mimetypes = ['text/x-ruby-shellsession']
 
-    _prompt_re = re.compile('irb\([a-zA-Z_][a-zA-Z0-9_]*\):\d{3}:\d+[>*] ')
+    _prompt_re = re.compile('irb\([a-zA-Z_][a-zA-Z0-9_]*\):\d{3}:\d+[>*] '
+                            '|>> |\?> ')
 
     def get_tokens_unprocessed(self, text):
         rblexer = RubyLexer(**self.options)