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 - Support Nashorn "Back-quote exec expressions"
Summary: Support Nashorn "Back-quote exec expressions"
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-11 17:01 UTC by terje7601
Modified: 2015-06-16 11:50 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.