From: Thomas Rast Date: Sat, 17 Jan 2009 16:29:48 +0000 (+0100) Subject: color-words: make regex configurable via attributes X-Git-Tag: v1.6.2-rc0~89^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/80c49c3de2d5a3aa12b0980a65f1163c8aef0c16?hp=80c49c3de2d5a3aa12b0980a65f1163c8aef0c16 color-words: make regex configurable via attributes Make the --color-words splitting regular expression configurable via the diff driver's 'wordregex' attribute. The user can then set the driver on a file in .gitattributes. If a regex is given on the command line, it overrides the driver's setting. We also provide built-in regexes for the languages that already had funcname patterns, and add an appropriate diff driver entry for C/++. (The patterns are designed to run UTF-8 sequences into a single chunk to make sure they remain readable.) Signed-off-by: Thomas Rast Signed-off-by: Junio C Hamano ---