Skip to content
Browse files

Ignore D 'static if' tests

This prevents the parser getting confused.
  • Loading branch information...
1 parent 3f7b888 commit 33e1a81b4a5d9f7d282b260c868fd1a5d6c1efaf @ntrel ntrel committed Apr 26, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 tagmanager/c.c
View
8 tagmanager/c.c
@@ -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;
}
}

0 comments on commit 33e1a81

Please sign in to comment.
Something went wrong with that request. Please try again.