Wikunia / brackets-FuncDocr

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

FuncDocr doesn't work if the function is inside an object collection #46

Closed vazyvite closed 9 years ago

vazyvite commented 9 years ago

Hi I reopen the issue #37 for the new version 0.8.13.

The documentation isn't generated after /\ + Enter. But if the documentation is already generated, FuncDocr works.

Wikunia commented 9 years ago

Sorry @vazyvite, I've changed some regex stuff which was maybe not the best idea. I will have a look later today. Stay tuned and thanks for the issue!

Wikunia commented 9 years ago

I've tested it and it works with the example given by #37 Are there any errors in the console?

vazyvite commented 9 years ago

Sorry, it's not the same issue as #37...

I declared some functions by this way : var test = function (chose) { // instructions }, truc = function (hop) { // instructions };

FuncDocr works well for the first function but not for the others.

pbojan commented 9 years ago

What about functions in classes with namespaces? It seems it doesn't work currently.

Example:

namespace.namespace1.class.prototype.method = function(param1, param2) {};
Wikunia commented 9 years ago

@pbojan can you try this version, please :) (Install from URL)

pbojan commented 9 years ago

@Wikunia Yes it works now, thanks!