Valerio Messina <[EMAIL PROTECTED]> wrote:
Seems nedit 5.5 C highlight syntax do not recognise the one line comment // as
text after // are not italic.
More if // follow a preprocessor directive, it mantein the attributes of
preprocessor code.
Example:
#define JBUFF_PKT_LATE -2 // late packet, out of jitterBuffer
// comment are added to C in ANSI C99 ported from C++95
There is no C99 syntax mode yet, because the vast majority of C code is C89.
In fact, some folks rely on it not being highlighted, since that will
fail to compile on many compilers.
We'll need to come up with a new, separate one, because there are a lot
of other C99ism's than just //.
Fortunately, it's really easy to change this. Just clone the "cplus
comment" pattern from C++ mode to C mode. That will make a faux-C99 mode.
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop