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 224215 - Javascript highlighter error.
Summary: Javascript highlighter error.
Status: RESOLVED FIXED
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-12-25 15:40 UTC by msk
Modified: 2013-01-04 02:29 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 msk 2012-12-25 15:40:27 UTC
Product Version = NetBeans IDE Dev (Build 201212190001)
Operating System = Linux version 3.2.0-35-generic running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = OpenJDK 64-Bit Server VM 23.2-b09

Javascript parser marks A as a global variable in this code

function F() {
    var A = 1;
    window.A = A;
}
Comment 1 Petr Pisl 2013-01-02 14:58:39 UTC
Do you mean that is purple? I see the issue in coloring that the second A at line window.A = A is green.
Comment 2 Petr Pisl 2013-01-03 20:39:42 UTC
Should be fixed in web-main: http://hg.netbeans.org/web-main/rev/cea1ea1e8396
Comment 3 Quality Engineering 2013-01-04 02:29:30 UTC
Integrated into 'main-golden', will be available in build *201301040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cea1ea1e8396
User: Petr Pisl <ppisl@netbeans.org>
Log: #224215 - Javascript highlighter error.