Re: [PATCH] kernel source spellchecker

Matthias Schniedermeyer (ms@citd.de)
Sun, 2 Mar 2003 10:31:26 +0100


On Sun, Mar 02, 2003 at 09:15:42AM +0000, John Bradford wrote:
> > > >This versions defaults to only correct words within a comment. ...
> > > >// Comments are easy(tm). "Everything after // until line-end".
> > > >
> > > >and /* ... */ are easy(tm) too because gcc doesn't support to nest them.
> > >
> > > I'll be damned. I'm impressed with how easy that was in perl.
> >
> > As long as there is no nesting involved most things a easy/trivial to
> > achieve with REs.
>
> Does it cope with:
>
> main ()
> {
> // /*
> printf ("hello world");
> // */
> }
>
> though?

No. I could fix this, but i don't think it's worth it.

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/