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 235793 - Incorrect highlighting when returning array
Summary: Incorrect highlighting when returning array
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-11 09:07 UTC by mcfedr
Modified: 2014-01-16 02:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of incorrect highlight (12.22 KB, image/png)
2013-09-11 09:07 UTC, mcfedr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mcfedr 2013-09-11 09:07:16 UTC
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;
    }];
}
Comment 1 mcfedr 2013-09-11 09:07:58 UTC
Created attachment 139922 [details]
screenshot of incorrect highlight
Comment 2 Vladimir Riha 2013-09-11 10:42:49 UTC
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)
Comment 3 Petr Pisl 2014-01-14 16:14:08 UTC
Fixed in web-main
Comment 4 Quality Engineering 2014-01-16 02:44:42 UTC
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