From: Jeff King Date: Fri, 09 Jan 2009 09:53:00 GMT Subject: Re: [RFC PATCH] make diff --color-words customizable Message-ID: <20090109095300.GA4099@coredump.intra.peff.net> In-Reply-To: <1231459505-14395-1-git-send-email-trast@student.ethz.ch> On Fri, Jan 09, 2009 at 01:05:05AM +0100, Thomas Rast wrote: > Word diff becomes much more useful especially with TeX, where it is > common to run together \sequences\of\commands\like\this that the > current --color-words treats as a single word. I have run into this, as well, and it would be nice to have configurable word boundaries. > Apart from possible bugs, the main issue is: where should I put the > configuration for this? It's a per-file thing, so probably in the diff driver that is triggered via attributes. See userdiff.[ch]; you'll need to add an entry to the userdiff_driver struct. You can look at the funcname pattern stuff as a template, as this is very similar. -Peff