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.
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)
This is not going from the parser, but from the lexer. It's error token from lexer.
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.
Fixed in dev builds. We add jsx support to the coloring lexer and parser as well.