Created attachment 142694 [details]
Incorrect Keyword Errors
Keywords let and const and maybe more keywords are reported as errors.
Reproducible on NetBeans 7.4, Window 7 x64 as well.
I know about this. This is problem with Nashorn, that parse the js file and reports these errors. IMHO we can only now suppress these errors in NetBeans(don't show them), but the problem is that the file will not be parsed anyway.
I will try to contact people from Nashorn and talk with them about this.
*** Bug 226477 has been marked as a duplicate of this bug. ***
I'm not sure if simply ignoring these errors in netbeans would work. It needs to be aware of these JS features so that other netbeans features will work. If I define a variable with const, the parser needs to know that I've defined a variable so that it can do the proper highlighting when it's selected. It should also warn me if I try to assign a new value to it.
Is there a way to get a hold of the Nashorn people? Had a hard time finding a way to contact them. Is that project still active?
This ia already working in the dev build.
*** This bug has been marked as a duplicate of bug 242387 ***