[svn r175] merged dmd 1.029

This commit is contained in:
Christian Kamm
2008-05-01 15:15:28 +02:00
parent 4cd137f9d4
commit 7ae4bc6477
27 changed files with 38673 additions and 38027 deletions

View File

@@ -637,6 +637,14 @@ Condition *Parser::parseVersionCondition()
id = token.ident;
else if (token.value == TOKint32v)
level = (unsigned)token.uns64value;
#if V2
/* Allow:
* version (unittest)
* even though unittest is a keyword
*/
else if (token.value == TOKunittest)
id = Lexer::idPool(Token::toChars(TOKunittest));
#endif
else
error("identifier or integer expected, not %s", token.toChars());
nextToken();