From: Junio C Hamano Date: Mon, 31 Jan 2011 03:03:21 +0000 (-0800) Subject: Merge branch 'tr/diff-words-test' into pu X-Git-Tag: ko-pu~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fcb90702baf08a3deb5c1966aa19125a07a0c30f;p=git.git Merge branch 'tr/diff-words-test' into pu * tr/diff-words-test: t4034 (diff --word-diff): add a minimum Perl drier test vector t4034 (diff --word-diff): style suggestions userdiff: simplify word-diff safeguard t4034: bulk verify builtin word regex sanity --- fcb90702baf08a3deb5c1966aa19125a07a0c30f diff --cc userdiff.c index 9ebf231ea,3a1c392bb..1ff47977d --- a/userdiff.c +++ b/userdiff.c @@@ -49,10 -49,9 +49,9 @@@ PATTERNS("objc" /* -- */ "[a-zA-Z_][a-zA-Z0-9_]*" "|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?" - "|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->" - "|[^[:space:]]|[\x80-\xff]+"), + "|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->"), PATTERNS("pascal", - "^((procedure|function|constructor|destructor|interface|" + "^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|" "implementation|initialization|finalization)[ \t]*.*)$" "\n" "^(.*=[ \t]*(class|record).*)$",