spadgos / sublime-jsdocs

Simplifies writing DocBlock comments in Javascript, PHP, CoffeeScript, Actionscript, C & C++
MIT License
3.11k stars 278 forks source link

Does not work when assigning function to a name #379

Closed nagarjun closed 9 years ago

nagarjun commented 9 years ago

In frameworks like Ember or Sails.js, I have to declare functions like this:

doSomething: function(a, b) {
    return true;
}

In these situations, DocBlocker picks up that there is a function with two arguments but does not pick up argument and function names. Am I missing some configuration setting?

spadgos commented 9 years ago

That example works for me... selection_115

Do you have your syntax highlighting set to Javascript?

nagarjun commented 9 years ago

@spadgos It seems to work now. :-) That was odd. I think I just had to restart Sublime. I'm sorry about that. Please mark this as resolved.