[Python-checkins] r57130 - external/Pygments-0.8.1/pygments/lexers/agile.py

georg.brandl python-checkins at python.org
Fri Aug 17 07:47:57 CEST 2007


Author: georg.brandl
Date: Fri Aug 17 07:47:28 2007
New Revision: 57130

Modified:
   external/Pygments-0.8.1/pygments/lexers/agile.py
Log:
Fix the console lexer (backport from trunk).


Modified: external/Pygments-0.8.1/pygments/lexers/agile.py
==============================================================================
--- external/Pygments-0.8.1/pygments/lexers/agile.py	(original)
+++ external/Pygments-0.8.1/pygments/lexers/agile.py	Fri Aug 17 07:47:28 2007
@@ -195,6 +195,11 @@
                 insertions.append((len(curcode),
                                    [(0, Generic.Prompt, line[:4])]))
                 curcode += line[4:]
+            elif line.rstrip() == '...':
+                tb = 0
+                insertions.append((len(curcode),
+                                   [(0, Generic.Prompt, '...')]))
+                curcode += line[3:]
             else:
                 if curcode:
                     for item in do_insertions(insertions,


More information about the Python-checkins mailing list