Skip to content

[javascript] template strings are not correctly parsed #201

@jsotuyod

Description

@jsotuyod

Rule Set: N/A

Description: ECMAScript 2015 (ES6) added support for template strings, delimited by backsticks (`). The current grammar does not support this properly, meaning template strings throw lexical errors.

Code Sample demonstrating the issue:

var markup = `<p>${content}</p>`;

Running PMD through: Any

Metadata

Metadata

Assignees

Labels

a:bugPMD crashes or fails to analyse a file.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions