diff highlighting patterns

Joachim Lous joachim at lous.org
Wed Jul 5 11:35:22 CEST 2006


On 7/3/06, TK Soh <teekaysoh at gmail.com> wrote:On 7/3/06, Volker
Kuhlmann <list0570 at paradise.net.nz> wrote:
> > You mean basically making a different "language"?

> I don't feel that's really necessary. First, diff files seldom get to
> big. The various diff formats aren't really that complicated, so they
> should be able to fit into one SH patterns.

It is certainly not necesary, but I don't feel that highlighting the
whole file inside an overriding parent pattern is any more elegant.
They _are_ differnt formats; why duplicate the format-detection that
built-in NEdit? Also, all the rest of the patterns in the set would
need need to exist in one copy for each diff type, all with different
names.

Doable, sure, and it's not as if it would be a catstrophically bad
decision. But I just don't see that it has any advantages over the
separate sets approach, and it does have a minor disadvantage in
internal clarity. You would get the same amount of duplication, just
all scrunched up in a comon pattern set with naming issues. Possibly a
performance penalty, but I doubt it will amount to much, so I'm not
lending any weight to it.


More information about the Discuss mailing list