equal
deleted
inserted
replaced
528 if pos in expected and expected[pos]: |
528 if pos in expected and expected[pos]: |
529 el = expected[pos].pop(0) |
529 el = expected[pos].pop(0) |
530 |
530 |
531 if el == l: # perfect match (fast) |
531 if el == l: # perfect match (fast) |
532 postout.append(" " + l) |
532 postout.append(" " + l) |
533 elif el and rematch(el, l): # fallback regex match |
533 elif el and el[2:] and rematch(el, l): # fallback regex match |
534 postout.append(" " + el) |
534 postout.append(" " + el) |
535 else: # mismatch - let diff deal with it |
535 else: # mismatch - let diff deal with it |
536 postout.append(" " + l) |
536 postout.append(" " + l) |
537 |
537 |
538 if pos in after: |
538 if pos in after: |