This commit is contained in:
Hackerpilot 2014-02-26 00:22:40 -08:00
commit c660faa5bf
2 changed files with 12 additions and 1 deletions

View File

@ -51,6 +51,7 @@ given source files.
* "fish operators" (floating point operators) are deprecated.
* Left side of a *foreach* or *foreach\_reverse* range expression is larger than the right.
* Left side of a slice expression is larger than the right
* Variable, struct, class, union, module, package, and interface names that do not comply with Phobos style guidelines
#### Wishlish
* Assigning to foreach variables that are not "ref".

View File

@ -4723,6 +4723,8 @@ q{(int a, ...)
do
{
auto structMemberInitializer = parseStructMemberInitializer();
if (structMemberInitializer !is null)
node.structMemberInitializers ~= structMemberInitializer;
if (currentIs(tok!","))
{
advance();
@ -6103,7 +6105,15 @@ protected:
return !peekIs(tok!"switch");
case tok!"debug":
case tok!"version":
return !peekIs(tok!"=");
{
if (peekIs(tok!"="))
return false;
auto b = setBookmark();
scope (exit) goToBookmark(b);
advance();
return isDeclaration();
}
case tok!"synchronized":
if (peekIs(tok!"("))
return false;