changeset 734:b11d46260909

Fixed infinite loop in ImportParser.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 03 Feb 2008 21:13:44 +0100
parents a48255f547c1
children 30e6f1b302a1
files trunk/src/dil/parser/ImportParser.d
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/parser/ImportParser.d	Sun Feb 03 21:39:42 2008 +0200
+++ b/trunk/src/dil/parser/ImportParser.d	Sun Feb 03 21:13:44 2008 +0100
@@ -58,7 +58,7 @@
 
   bool skipToClosing(T opening, T closing)
   {
-    Token* next = token;
+    alias token next;
     uint level = 1;
     while (1)
     {
@@ -257,6 +257,7 @@
       else
         goto case_InvariantAttribute;
     }
+      nT();
       token.kind == T.LParen && skipToTokenAfterClosingParen();
       parseFunctionBody();
       break;