highlighting problems

Scott Tringali scott.tringali at totalviewtech.com
Thu Mar 13 15:19:06 CET 2008


Volker Kuhlmann wrote:

> The C highlighting is missing the #warning statement (but the #error one
> is there).

I believe #warning is a GNU C extension, not a portable ANSI C directive:

% cc warn.c
cc: Warning: warn.c, line 1: "warning" is an invalid preprocessor 
directive, and is being ignored. (baddirective)
#warning goo

Of course, the compiler generates a warning here, which is sort of what 
you wanted, but not exactly what you meant...

There are lots of gcc extensions.  Maybe a gcc-specific highlight mode 
is what you want?



More information about the Discuss mailing list