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

Summary: Syntax highlighting error
Product: cnd Reporter: dmitchell
Component: Code ModelAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot shows highlighting problem

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.