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 224620 - Javascript syntax highlighter: Line comment background continues across html inline event handlers (e.g. onclick)
Summary: Javascript syntax highlighter: Line comment background continues across html ...
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P4 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 20:22 UTC by pekarna
Modified: 2015-06-01 11:50 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 pekarna 2013-01-08 20:22:31 UTC
Really a tiny problem. Anyway:

    <img onclick="foo(); // Comment " />
    <input type="text" onblur="bar()" />

The JavaScript code of onblur has the background of a comment. Probably because the "// Comment" is not ended by an enter, rather quotation mark.

7.3.beta2
Comment 1 Milutin Kristofic 2013-01-09 12:59:06 UTC
I would send this embedded javascript problem to javascript editor for evaluation.
Comment 2 Roman Svitanic 2015-06-01 11:50:54 UTC
Not reproducible anymore.

Product Version: NetBeans IDE Dev (Build 20150601-b403da652e07)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Mac OS X version 10.10.3 running on x86_64; UTF-8; en_US (nb)