Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-15

Re: [PATCH v2 4/5] Make boundary characters for --color-words configurable

From: Ping Yin <hidden>
Date: 2016-06-15 22:44:34

On Wed, May 7, 2008 at 9:10 PM, Johannes Schindelin
[off-list ref] wrote:
 > Sorry, but i can't parse both sentences, especially Bikeshedding and
 > "punch holes into".

 "punch holes into": find cases where Junio's proposed algorithm breaks
 down.
I think the --color-words={char,punct,word} covers most of the cases
that junio mentioned, except the case that a token can be a run of
word chars, a run of non-word chars or a run of whitespaces.

If anyone is interested in this case, he can extend --color-words with
a fourth option or tokenizer (i havn't yet found a good name for this
tokenizer).

Of course, if neccessary, one can implement other language-specific tokenizers.

However, i think the 3 tokenizers i mentioned is enough for most cases.
 "bikeshedding": discussing minor implementation details that are not
 really interesting at this stage.  See also
 http://en.wikipedia.org/wiki/Bikeshedding.
See. THX.


-- 
Ping Yin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help