Commits

Bruno Gola  committed d4c7fe2

test_search.py and test_zinternal.py passing

  • Participants
  • Parent commits 4c56b2a

Comments (0)

Files changed (1)

File pypy/rlib/rsre/rsre_core.py

             # zero-width match protection
             min = ctx.pat(ppos+1)
             if self.num_pending >= min:
-                if ptr == ctx.match_end and ctx.match_marks:
-                    # matched marks inside a zero-width assertion
-                    marks = ctx.match_marks
                 while enum is not None and ptr == ctx.match_end:
                     enum = enum.move_to_next_result(ctx)
+                    # matched marks for zero-width assertions
+                    marks = ctx.match_marks
             #
             if enum is not None:
                 # matched one more 'item'.  record it and continue.