Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JavaScript parser: Simplify parseJfFile() code (no functional changes)

  • Loading branch information...
commit 74890cc3080a87c95a19d28183a022a9219afcab 1 parent 297bca3
@b4n b4n authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 tagmanager/ctags/js.c
View
12 tagmanager/ctags/js.c
@@ -1569,18 +1569,10 @@ static void parseJsFile (tokenInfo *const token)
{
readToken (token);
- if (isType(token, TOKEN_KEYWORD))
- {
- switch (token->keyword)
- {
- case KEYWORD_function: parseFunction (token); break;
- default: parseLine (token, FALSE); break;
- }
- }
+ if (isType (token, TOKEN_KEYWORD) && token->keyword == KEYWORD_function)
+ parseFunction (token);
else
- {
parseLine (token, FALSE);
- }
} while (TRUE);
}
Please sign in to comment.
Something went wrong with that request. Please try again.