heavenshell / vim-jsdoc

Generate JSDoc to your JavaScript code.
BSD 3-Clause "New" or "Revised" License
452 stars 44 forks source link

ES6 Generator functions #53

Closed Reewr closed 8 years ago

Reewr commented 8 years ago

Generating documentation for ES6 Generator functions doesn't work properly.

let generatorFn = function* (arg1, arg2) {};

Using JsDoc on the above function only adds description and return and doesn't recognize the arguments. This is most likely due to the function regex not considering '*' a valid character in between function and parenthesis.

heavenshell commented 8 years ago

Thx for reporting. I'll look into it later.

Patches are very welcome :smile: