[geany/geany] 33e1a8: Ignore D 'static if' tests
Nick Treleaven
git-noreply at xxxxx
Thu Apr 26 12:50:39 UTC 2012
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Thu, 26 Apr 2012 12:50:39
Commit: 33e1a81b4a5d9f7d282b260c868fd1a5d6c1efaf
https://github.com/geany/geany/commit/33e1a81b4a5d9f7d282b260c868fd1a5d6c1efaf
Log Message:
-----------
Ignore D 'static if' tests
This prevents the parser getting confused.
Modified Paths:
--------------
tagmanager/c.c
Modified: tagmanager/c.c
8 files changed, 8 insertions(+), 0 deletions(-)
===================================================================
@@ -2042,6 +2042,14 @@ static void processToken (tokenInfo *const token, statementInfo *const st)
}
break;
}
+ case KEYWORD_IF:
+ if (isLanguage (Lang_d))
+ { /* static if (is(typeof(__traits(getMember, a, name)) == function)) */
+ int c = skipToNonWhite ();
+ if (c == '(')
+ skipToMatch ("()");
+ }
+ break;
}
}
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list