[geany/geany] 8c10f6: Parse Java annotations with parameters
Braden Walters
git-noreply at xxxxx
Sat Jun 8 01:29:40 UTC 2013
Branch: refs/heads/master
Author: Braden Walters <vc at braden-walters.info>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 08 Jun 2013 01:29:40 UTC
Commit: 8c10f6a90dc4f5dae68b412634567d32645b5792
https://github.com/geany/geany/commit/8c10f6a90dc4f5dae68b412634567d32645b5792
Log Message:
-----------
Parse Java annotations with parameters
Closes #924.
Modified Paths:
--------------
tagmanager/ctags/c.c
Modified: tagmanager/ctags/c.c
7 files changed, 5 insertions(+), 2 deletions(-)
===================================================================
@@ -1678,9 +1678,12 @@ static keywordId analyzeKeyword (const char *const name)
{
const keywordId id = (keywordId) lookupKeyword (name, getSourceLanguage ());
- /* ignore D @attributes, but show them in function signatures */
- if (isLanguage(Lang_d) && id == KEYWORD_NONE && name[0] == '@')
+ /* ignore D @attributes and Java @annotations(...), but show them in function signatures */
+ if ((isLanguage(Lang_d) || isLanguage(Lang_java)) && id == KEYWORD_NONE && name[0] == '@')
+ {
+ skipParens(); /* if annotation has parameters, skip them */
return KEYWORD_CONST;
+ }
return id;
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list