senchalabs / jsduck

Simple JavaScript Duckumentation generator.
http://docs.sencha.com/
GNU General Public License v3.0
1.5k stars 238 forks source link

Fail parsing template literals #644

Closed remss closed 8 years ago

remss commented 8 years ago

Using template literals make the parser fail.

Ext.define('MyPanel' ,{
    extend: 'Ext.panel.Panel',
    myTpl: `
<div class="test">
    <h1>Hello World!</h1>
    <p>Lorem ipsum...</p>
</div>`,
    //... other props/methods
});

Error while parsing myPanel.js: Invalid JavaScript syntax: Unexpected '`' on line 3

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

nene commented 8 years ago

That's the general issue of JSDuck not supporting ES6 syntax: #630