Re: [PATCH] kernel source spellchecker

Matthias Schniedermeyer
2003-03-01T19:20:28Z

[-- Attachment #1: Type: TEXT/PLAIN, Size: 956 bytes --]

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.

[-- Attachment #2: Type: APPLICATION/x-perl, Size: 5148 bytes --]