diff trunk/src/Parser.d @ 296:3a2afc425ceb

- Fix in peekNext(): need to skip comments.
author aziz
date Thu, 09 Aug 2007 16:37:02 +0000
parents 75b47c71a34c
children b16dda92c3dd
line wrap: on
line diff
--- a/trunk/src/Parser.d	Thu Aug 09 16:30:05 2007 +0000
+++ b/trunk/src/Parser.d	Thu Aug 09 16:37:02 2007 +0000
@@ -96,7 +96,9 @@
   TOK peekNext()
   {
     Token* next = token;
-    lx.peek(next);
+    do
+      lx.peek(next);
+    while (next.type != T.Comment)
     return next.type;
   }