Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Tue, 25 Sep 2012 14:48:10 Commit: bf233bc05590acf2c4ac6ecdbca9f9a30b5e5662 https://github.com/geany/geany/commit/bf233bc05590acf2c4ac6ecdbca9f9a30b5e56...
Log Message: ----------- JavaScript parser: create class tag for variable with children methods
If we generated methods, properties or class children tags for a variable, generate a class tag for the variable itself so the children aren't orphaned.
Modified Paths: -------------- tagmanager/ctags/js.c
Modified: tagmanager/ctags/js.c 4 files changed, 3 insertions(+), 1 deletions(-) =================================================================== @@ -1387,7 +1387,9 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class) * var z = {}; */ has_methods = parseMethods(token, name); - if ( ! has_methods ) + if (has_methods) + makeJsTag (name, JSTAG_CLASS); + else { /* * Only create variables for global scope
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).