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 217138 - Incorrect color of duplicate property name
Summary: Incorrect color of duplicate property name
Status: RESOLVED WONTFIX
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-21 09:19 UTC by Vladimir Riha
Modified: 2013-07-18 14:22 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 Vladimir Riha 2012-08-21 09:19:50 UTC
Snippet 1:

 var z = {
    first: "10",
    second: "text",
    first: 1
 };


The second "first" is in black but should be green as well.


Snippet 2:

 var z = {
    first: "10",
    second: "text",
    ahoj: function(){
        this.first =1;
    },
    ahoj:1
 };

First ahoj is in green, while it should be in bold black, the second "ahoj" is again in black and should be green


Product Version: NetBeans IDE Dev (Build EaselCSS-520-on-20120821)
Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2012-08-21 12:55:36 UTC
This is a bug, because you define one property twice. So you have to rename it anyway. There can be done improvement, that the right coloring will be displayed for the last one, which is used in the runtime and the first one will be black.
Comment 2 Petr Pisl 2013-07-18 14:22:46 UTC
I'm closing this issue as wontfix now.