Commits

Tim Hatch committed 57860a0

Fix infinite loop bug in DarcsPatchLexer
---
pygments/lexers/text.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Comments (0)

Files changed (1)

pygments/lexers/text.py

         'insert': [
             include('specialText'),
             (r'\[', Generic.Inserted),
-            (r'[^\n\[]*', Generic.Inserted),
+            (r'[^\n\[]+', Generic.Inserted),
         ],
         'delete': [
             include('specialText'),
             (r'\[', Generic.Deleted),
-            (r'[^\n\[]*', Generic.Deleted),
+            (r'[^\n\[]+', Generic.Deleted),
         ],
     }