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.
Recognize / correctly parse Nashorn extensions in the editor: https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions
IMHO it should be enough to update Nashorn, that is used in NB.