diff --git a/components/compiler/scanner.cpp b/components/compiler/scanner.cpp index 83c5b2d174..a202eca5c8 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();