2009/8/12 Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>: > PulkoMandy <pulkomandy@xxxxxxxxx> wrote: >> call matchadd('ErrorMsg', 'while(', -1) " while without space > > What about "select(", and maybe something like [{alnum}][,=/+-* > ;][{alnum}] to detect operator use without the correct spacing? Maybe > also [=&|/+-]$ to detect wrong operator positions at the end of a line? > > Bye, > Axel. > > > Added them to the wiki page. I've not matched * as it can actually be at end of a line (as in char* class::method() ) and not matched a<b because it higlighted static_cast<type>. So it is possible to make it better. -- Adrien Destugues / PulkoMandy Elève ingénieur ENSSAT EII1- www.enssat.fr GSoC student for Haiku - http://haiku-os.org GrafX2 project team - http://code.google.com/p/grafx2