[geany/geany] 74890c: JavaScript parser: Simplify parseJfFile() code (no functional changes)
Colomban Wendling
git-noreply at xxxxx
Mon Sep 24 17:51:37 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 24 Sep 2012 17:51:37
Commit: 74890cc3080a87c95a19d28183a022a9219afcab
https://github.com/geany/geany/commit/74890cc3080a87c95a19d28183a022a9219afcab
Log Message:
-----------
JavaScript parser: Simplify parseJfFile() code (no functional changes)
Modified Paths:
--------------
tagmanager/ctags/js.c
Modified: tagmanager/ctags/js.c
12 files changed, 2 insertions(+), 10 deletions(-)
===================================================================
@@ -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);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list