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

Summary: Support Nashorn "Multi-line string literals"
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: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.