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 252936

Summary: Support Nashorn "Back-quote exec expressions"
Product: javascript Reporter: terje7601
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description terje7601 2015-06-11 17:01:04 UTC
NetBeans gives parsing errors on the use of "Back-quote exec expressions" (cf. https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions ) in Nashorn scripts.

Moreover, because of this, it's impossible to use formatting. For example:

function foo() {
    return 42;
}

`notepad`;

function bar() {
    print(foo());
}

bar();

is formatted as:

function foo() {
    return 42;
}

`notepad`;
        function bar() {
            print(foo());
        }

bar();
Comment 1 Petr Pisl 2015-06-16 11:50:22 UTC
The Nashorn parser needs to be updated.