Thomas Rast wrote: > The builtin word regexes should be tested with some simple examples > against simple issues, like failing to match a non-space character. > Do this in bulk. The above patch depends on "diff.c: implement a sanity check for word regexes" but not in any essential way. Patch 1 below is the part that is still relevant without it. Patch 2 changes the UTF-8 catchall to match a single non-ASCII character[1], at the same time as making it harder to forget to use. (My motivation is that the UTF-8 catchall is missing in the new perl support.) Patch 3 contains some cosmetic tweaks to the tests. They were meant as preparations for patch 2 but I checkened out and stopped there. Thoughts and improvements welcome, as always. Jonathan Nieder (2): userdiff: simplify word-diff safeguard t4034 (diff --word-diff): style suggestions Thomas Rast (1): t4034: bulk verify builtin word regex sanity t/t4034-diff-words.sh | 463 +++++++++++++++++++++++------------------------- t/t4034/bibtex/expect | 15 ++ t/t4034/bibtex/post | 10 + t/t4034/bibtex/pre | 9 + t/t4034/cpp/expect | 36 ++++ t/t4034/cpp/post | 19 ++ t/t4034/cpp/pre | 19 ++ t/t4034/csharp/expect | 35 ++++ t/t4034/csharp/post | 18 ++ t/t4034/csharp/pre | 18 ++ t/t4034/fortran/expect | 10 + t/t4034/fortran/post | 5 + t/t4034/fortran/pre | 5 + t/t4034/html/expect | 8 + t/t4034/html/post | 3 + t/t4034/html/pre | 3 + t/t4034/java/expect | 36 ++++ t/t4034/java/post | 19 ++ t/t4034/java/pre | 19 ++ t/t4034/objc/expect | 35 ++++ t/t4034/objc/post | 18 ++ t/t4034/objc/pre | 18 ++ t/t4034/pascal/expect | 35 ++++ t/t4034/pascal/post | 18 ++ t/t4034/pascal/pre | 18 ++ t/t4034/php/expect | 35 ++++ t/t4034/php/post | 18 ++ t/t4034/php/pre | 18 ++ t/t4034/python/expect | 34 ++++ t/t4034/python/post | 17 ++ t/t4034/python/pre | 17 ++ t/t4034/ruby/expect | 34 ++++ t/t4034/ruby/post | 17 ++ t/t4034/ruby/pre | 17 ++ t/t4034/tex/expect | 9 + t/t4034/tex/post | 4 + t/t4034/tex/pre | 4 + userdiff.c | 37 ++--- 38 files changed, 887 insertions(+), 266 deletions(-) create mode 100644 t/t4034/bibtex/expect create mode 100644 t/t4034/bibtex/post create mode 100644 t/t4034/bibtex/pre create mode 100644 t/t4034/cpp/expect create mode 100644 t/t4034/cpp/post create mode 100644 t/t4034/cpp/pre create mode 100644 t/t4034/csharp/expect create mode 100644 t/t4034/csharp/post create mode 100644 t/t4034/csharp/pre create mode 100644 t/t4034/fortran/expect create mode 100644 t/t4034/fortran/post create mode 100644 t/t4034/fortran/pre create mode 100644 t/t4034/html/expect create mode 100644 t/t4034/html/post create mode 100644 t/t4034/html/pre create mode 100644 t/t4034/java/expect create mode 100644 t/t4034/java/post create mode 100644 t/t4034/java/pre create mode 100644 t/t4034/objc/expect create mode 100644 t/t4034/objc/post create mode 100644 t/t4034/objc/pre create mode 100644 t/t4034/pascal/expect create mode 100644 t/t4034/pascal/post create mode 100644 t/t4034/pascal/pre create mode 100644 t/t4034/php/expect create mode 100644 t/t4034/php/post create mode 100644 t/t4034/php/pre create mode 100644 t/t4034/python/expect create mode 100644 t/t4034/python/post create mode 100644 t/t4034/python/pre create mode 100644 t/t4034/ruby/expect create mode 100644 t/t4034/ruby/post create mode 100644 t/t4034/ruby/pre create mode 100644 t/t4034/tex/expect create mode 100644 t/t4034/tex/post create mode 100644 t/t4034/tex/pre [1] suggested in <201012261206.11942.trast@xxxxxxxxxxxxxxx>, which is missing from gmane for some reason. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html