This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 12532 - Bad coloring for multiline comments in #define
Summary: Bad coloring for multiline comments in #define
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: cpplite (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-31 13:04 UTC by Petr Nejedly
Modified: 2001-07-20 20:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2001-05-31 13:04:44 UTC
when I have a code reading:
#define SOME_CONST value    /* multiline explanation
                               of the meaning of the constant */

it will color the ending "*/" as error nad the whole second line
is not considered a comment
Comment 1 Jan Lahoda 2001-05-31 19:16:45 UTC
(this bug is about build: "dev-1".)
So, according to:
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_1.html#SEC1
this code:
#define X /*
foo
bar
*/ x
has following sense:
define macro "X" with content " x".
I corrected syntax highlighting to reflect this meaning.
I also found that continuing preprocessor directives were not handled properly -
I fix it also.

Fixed in:
/cvs/cpplite/src/org/netbeans/modules/cpplite/syntax/CPPSyntax.java in revision
1.3

It will be in build "dev-2".