#890 In Javascript function inside method is not recognized.

v1.23
closed-fixed
Filetypes (68)
5
2012-09-24
2012-09-24
No

In JavaScript code a function inside a method is not listed under it in class browser section "Classes", but is listed in the list "Functions". For example, for:

function MyClass() {
}

MyClass.prototype.method2 = function() {
function nestedFunction1() {
};
};

in the left panel I see

- Classes
-- MyClass
--- method2

- Functions
-- MyClass.function.nestedFunction1

It would be better if this function were under method2, i.e.:

- Classes
-- MyClass
--- method2
---- nestedFunction1

I attach the patch fixing this issue.

I apologize if I violate the code style or do something stupid. It's the first time I see the ctags code.

(See discussion here: https://sourceforge.net/tracker/?func=detail&atid=787791&aid=3570192&group_id=153444\)

Discussion

<< < 1 2 (Page 2 of 2)
  • Oleg Eterevsky

    Oleg Eterevsky - 2012-09-24

    The correct patch is: 0001-In-ctags-JavaScript-parser-fix-recognizing-functions.patch

     
  • Colomban Wendling

    • assigned_to: codebrainz --> colombanw
     
  • Colomban Wendling

    Committed, thanks a lot!

     
  • Colomban Wendling

    • milestone: --> v1.23
    • status: open --> closed-fixed
     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks