From fda7077cf2f046064fe7ab26dd962d4b25fd75b5 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 28 Jun 2010 11:40:48 +0200 Subject: [PATCH] bug-fix: comments were eating up newlines --- components/compiler/scanner.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/compiler/scanner.cpp b/components/compiler/scanner.cpp index 83c5b2d17..a202eca5c 100644 --- a/components/compiler/scanner.cpp +++ b/components/compiler/scanner.cpp @@ -52,7 +52,14 @@ namespace Compiler } else if (c==';') { - while (get (c) && c!='\n'); + while (get (c)) + { + if (c=='\n') + { + putback (c); + break; + } + } mLoc.mLiteral.clear();