From cd3bb40730a34cb31a0f35149369973cda359719 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sun, 15 Sep 2013 19:27:32 +0000 Subject: [PATCH] Less dumb fix for attribute declarations --- stdx/d/parser.d | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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: