Wikunia / brackets-FuncDocr

FuncDocr generates JS/PHPDoc annotations for your functions
101 stars 14 forks source link

Support generator function auto-completition #84

Closed petetnt closed 8 years ago

petetnt commented 8 years ago

The function* declaration (function keyword followed by an asterisk) defines a generator function, which returns a Generator object.

Basically all that needs to be done is to accept asterixes after the "function" keyword.

Current behavior:

// Auto complete works when typing /** + Enter:
function foo() {

}

// Doesn't work:
function* foo() {

}

REF: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*

Thanks once again for this great extension!

Wikunia commented 8 years ago

Would be great if you can install from url and test it a bit and then close this issue. Afterwards I will register the new version! Thanks for the request. Have a nice day!

petetnt commented 8 years ago

Works great, thanks @Wikunia! :+1: