Re: [PATCH v2 4/5] Make boundary characters for --color-words configurable
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 7, 2008, 11:24 UTC
- Message-ID
- <alpine.DEB.1.00.0805071223450.30431@racer>
- In-Reply-To
- <46dff0320805061815k6aca9020g285b09da2bcf29c3@mail.gmail.com>
Hi,
On Wed, 7 May 2008, Ping Yin wrote:
Show 21 quoted lines
> On Tue, May 6, 2008 at 4:55 PM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> > > I will come up with an implementation still using diff.nonwordchars few
> > > days later.
> >
> > If I did not like the unnecessary negative approach "nonwordchars" (as
> > opposed to "wordchars"), it seems even less appropriate now, when you
> > actually want to discern between "spaceCharacters",
> > "punctuationCharacters" and "wordCharacters".
> >
>
> Hmm, punctchars should be a better word than nonwordchars.
>
> So how about this
>
> --color-words={char,punct,word}
>
> - char: one char one token
> - punct/word: a token can be either a run of word characters or a
> single punct character. diff.punctchars is used for punct, and
> diff.wordchars is used for word.I am rather interested in the semantics, i.e. if you can punch holes into this 3-class approach.
Bikeshedding comes later ;-)
Ciao, Dscho