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 252937 - Support Nashorn "Multi-line string literals"
Summary: Support Nashorn "Multi-line string literals"
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:03 UTC by terje7601
Modified: 2015-06-16 11:49 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:03:31 UTC
NetBeans gives parsing errors on the use of "Multi-line string literals" (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:

var str = <<EOF
 
This is a string that contains multiple lines
hello
world
That's all!
 
EOF
 
print(str)

is formatted as:

var str = << EOF

        This is a string that contains multiple lines
        hello
        world
        That's all!

        EOF

        print(str)
Comment 1 Petr Pisl 2015-06-16 11:49:30 UTC
Needed to update the Nashorn parser.