Re: [PATCH] kernel source spellchecker

From: Matthias Schniedermeyer (ms@citd.de)
Date: Sat Mar 01 2003 - 14:30:36 EST


Hi

> Matthias Schniedermeyer wrote:
> > I've no spelling knowledge, so the list of spellcorrections must be made
> > by someone else. But i can volunteer the perl-snippet to correct the
> > files. :-)
>
> Smashing! However, it should probably avoid correcting spellings
> in anything but C comments.

Here we go.

Take 1.10

This versions defaults to only correct words within a comment.

> Perhaps my C comment parser should be converted to perl and

No need to make any hasled.

// Comments are easy(tm). "Everything after // until line-end".

and /* ... */ are easy(tm) too because gcc doesn't support to nest them.

Only a handfull of lines were needed to handle this. :-)

Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:16 EST