patch: enable diff.tab markup for the color extension
The following patch splits up changed lines along tabs (using
re.findall), and gives them a "diff.tab" label. This can be used by
the color extension for colorising tabs, like it does right now with
trailing whitespace.
I also provide corresponding tests.
workingfilectx.date = (1000, 0)
ASCII : Gr?ezi!
Latin-1 : Grüezi!
UTF-8 : Grüezi!
(['foo'], [], [], [], [], [], [])
diff --git a/foo b/foo
--- a/foo
+++ b/foo
@@ -1,1 +1,2 @@
foo
+bar