Re: obsolete RPM tags highlighting



Hi,

On Fri, 2006-07-14 at 15:33 +0200, Leonard den Ottolander wrote:
> Hi,
> 
> On Fri, 2006-07-14 at 09:24 +0200, Jindrich Novy wrote:
> > On Thu, 2006-07-13 at 17:22 +0300, Andy Shevchenko wrote:
> > > Jindrich Novy пишет:
> > > My $0.02 to specfile highliting.
> > > The mc shipped with FC4 doesn't handle correctly the case-insensivity
> > > tags. For example, BuildArch and Buildarch are highliting differently,
> > > but rpm recognize both.
> 
> > Here's the patch to fix it. Thanks for pointing this out.
> 
> Andy's examples were just that: Examples. A complete patch should allow
> any mixing of case for any spec keyword. For _example_:
> 
> \{Gg\}\{Rr\}\{Oo\}\{Uu\}\{Pp\}
>
> Just fixing and committing a few arbitrary examples does not makes much
> sense imo.

This is a joke, isn't it?

Just imagine a nice spec like this:

SuMmArY: Programs for backing up and restoring ext2/ext3 filesystems
nAMe: dump
veRSioN: 0.4b41

I really think that the highlighting rules for spec should be limited to
some set of commonly used tags. At least the first capital letter should
be mandatory upper-case and some case sensitivity fix-ups should be made
for tags composed from multiple words as Andy pointed out. Otherwise
specs written using mcedit would be a big mess IMO.

Jindrich




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]