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.
When returning an array, the whole array is highlighted in green (as a field) Here are two examples that get incorrectly highlighted. Its particularly inconvenient in b(), because all on the returned function is incorrectly highlighted. function a() { var a, b, c; return [a, b, c]; } function b() { return [function() { var something; }]; }
Created attachment 139922 [details] screenshot of incorrect highlight
reproducible Product Version: NetBeans IDE 7.4 RC1 (Build 201309040918) Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Fixed in web-main
Integrated into 'main-silver', will be available in build *201401160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/149c028b9af7 User: Petr Pisl <ppisl@netbeans.org> Log: #235793 - Incorrect highlighting when returning array