Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#889 In Javascript methods are not recognized.

v1.23
closed-fixed
Filetypes (68)
5
2012-09-21
2012-09-20
Oleg Eterevsky
No

Version of Geany: 0.21
OS: Ubuntu Precise

In JavaScript one of the common styles (http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Method_definitions) recommends using the following code to define the class methods:

function MyClass() {
}

MyClass.staticMethod = function() {
};

MyClass.prototype.instanceMethod = function() {
};

When editing such code in Geany, these methods appear in class browser, but not in the classes where they belong, but in the section Functions.

Discussion

<< < 1 2 (Page 2 of 2)
  • Oleg Eterevsky
    Oleg Eterevsky
    2012-09-24

    Ok, subclasses work fine, thanks.

    Functions inside functions also are recognized, but functions inside methods are not. I guess the bug is in makeJsTag in tagmanager/ctags/js.c. I'll try to fix it and send you the patch.

     
<< < 1 2 (Page 2 of 2)