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 252179 - JS error that starts as regexp underlined as error when filtering is enabled
Summary: JS error that starts as regexp underlined as error when filtering is enabled
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-30 11:02 UTC by Vladimir Riha
Modified: 2016-10-10 05:48 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 2015-04-30 11:02:08 UTC
Please try:


var CommentBox = React.createClass({
  render: function() {
    return (
      <div className="commentBox">
        Hello, world! I am a CommentBox.
      </div>
    );
  }
});



the "div>" in </div> is red underlined, if I remove the / it works fine.


Thank you


Product Version: NetBeans IDE Dev (Build 201504240001)
Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2015-05-05 13:44:13 UTC
This is not going from the parser, but from the lexer. It's error token from lexer.
Comment 2 Petr Pisl 2015-05-05 13:54:51 UTC
Marking as P4. The fix could significantly slow down the coloring lexer. User can change the color of the error token in Fonts & Colors for JavaScript files.
Comment 3 Petr Pisl 2016-08-15 13:32:13 UTC
Fixed in dev builds. We add jsx support to the coloring lexer and parser as well.