diff trunk/src/Parser.d @ 148:e3e4d3314166

- Implemented parsing protection attributes.
author aziz
date Thu, 12 Jul 2007 14:31:02 +0000
parents e46b3415ec16
children 37e2e0d06013
line wrap: on
line diff
--- a/trunk/src/Parser.d	Thu Jul 12 14:20:05 2007 +0000
+++ b/trunk/src/Parser.d	Thu Jul 12 14:31:02 2007 +0000
@@ -296,8 +296,9 @@
     case T.Package:
     case T.Protected:
     case T.Public:
+    case T.Export:
+      decl = new ProtectionDeclaration(token.type, parseDeclarationsBlock());
       break;
-    case T.Export:
     case T.Override:
     case T.Deprecated:
     case T.Abstract: