Permalink
Browse files

JavaScript parser: fix scope of functions nested inside methods

  • Loading branch information...
1 parent 4dafe0d commit 21096777813f256826b6a1384dc6bcc14e9ad715 @b4n b4n committed Oct 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 tagmanager/ctags/js.c
View
1 tagmanager/ctags/js.c
@@ -1243,6 +1243,7 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class)
makeJsTag (token, JSTAG_METHOD);
readToken (method_body_token);
+ vStringCopy (method_body_token->scope, token->scope);
while (! ( isType (method_body_token, TOKEN_SEMICOLON) ||
isType (method_body_token, TOKEN_CLOSE_CURLY) ||

0 comments on commit 2109677

Please sign in to comment.