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 190254 - Syntax highlighting error
Summary: Syntax highlighting error
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 02:11 UTC by dmitchell
Modified: 2013-05-07 11:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot shows highlighting problem (109.23 KB, image/png)
2010-10-18 16:15 UTC, dmitchell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmitchell 2010-09-09 02:11:26 UTC
struct point {

point() : x(), y() { } // x, y are highlighted

point(int x, int y) : x(x), y(y) { } // no highlighting!

int x, y;
};
Comment 1 nnnnnk 2010-10-18 15:09:33 UTC
Works for me.
Please try development version.

I've found another minor problem:
In second constructor all "x" and "y" reference to function parameters.
Comment 2 dmitchell 2010-10-18 16:15:43 UTC
Created attachment 102458 [details]
Screenshot shows highlighting problem
Comment 3 dmitchell 2010-10-18 16:22:02 UTC
"Please try development version."

I see the same behavior in netbeans-trunk-nightly-201010180000-cpp-linux.

"In second constructor all "x" and "y" reference to function parameters."

Do you mean in terms of highlighting? That's the problem I am reporting. Member variables are highlighted green while function parameters are in plain black. In the second constructor, all x and y are in plain black. I've uploaded a screenshot showing the problem.