diff --git a/stdx/d/parser.d b/stdx/d/parser.d index 974a065..2b8ef29 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.d @@ -1601,18 +1601,12 @@ class ClassFour(A, B) if (someTest()) : Super {}}c; if (currentIs(TokenType.colon)) { node.attributeDeclaration = parseAttributeDeclaration(attr); - break; + return node; } else node.attributes ~= attr; } while (moreTokens()); - if (!moreTokens) - { - error("Declaration expected"); - return null; - } - with (TokenType) switch (current.type) { case semicolon: